Commit 12c68ede authored by David Reed's avatar David Reed

Refactor additional loader tests to use MockSimpleSalesforce

parent dee26e17
Pipeline #47550871 passed with stages
in 13 minutes and 5 seconds
......@@ -150,7 +150,7 @@ def load_load_operation(incoming, context, resume = False):
# Ensure that the target objects of this reference
# are included in the extraction. If not, show a warning.
if not any([ref in all_sobjects for ref in field_map[f]['referenceTo']]):
logging.getLogger('amaxa').warn(
logging.getLogger('amaxa').warning(
'Field %s.%s is a reference none of whose targets (%s) are included in the load. Reference handlers will be inactive for references to non-included sObjects.',
sobject,
f,
......@@ -383,7 +383,7 @@ def load_extraction_operation(incoming, context):
# Ensure that the target objects of this reference
# are included in the extraction. If not, show a warning.
if not any([ref in all_sobjects for ref in field_map[f]['referenceTo']]):
logging.getLogger('amaxa').warn(
logging.getLogger('amaxa').warning(
'Field %s.%s is a reference none of whose targets (%s) are included in the extraction. Reference handlers will be inactive for references to non-included sObjects.',
sobject,
f,
......
......@@ -804,7 +804,7 @@ class test_load_load_operation(unittest.TestCase):
self.assertEqual([], errors)
self.assertIsInstance(result, amaxa.LoadOperation)
amaxa_logger.warn.assert_called_once_with(
amaxa_logger.warning.assert_called_once_with(
'Field %s.%s is a reference none of whose targets (%s) are included in the load. Reference handlers will be inactive for references to non-included sObjects.',
'Account',
'OwnerId',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment