NEWDWH2021-1255 【実装・UT】CRMデータ取得の改修
不要なコメントの削除 アンダースコアの数が3つになっていた部分を修正
This commit is contained in:
parent
dbda935054
commit
7cabf47d85
@ -308,32 +308,8 @@ class TestSalesforceApiClient:
|
||||
sut = SalesforceApiClient()
|
||||
|
||||
actual = sut.fetch_sf_data(soql)
|
||||
assert len(actual) == 5
|
||||
|
||||
"""
|
||||
expect = {
|
||||
'Id': 'a025i00000RleEHAAZ',
|
||||
'Name': 'A-0001',
|
||||
'RecordTypeId': '0125i000000RUqOAAW',
|
||||
'attributes': OrderedDict([('type', 'RelationshipTest__c'),
|
||||
('url',
|
||||
'/services/data/v57.0/sobjects/RelationshipTest__c/a025i00000RleEHAAZ')]),
|
||||
'RecordType': OrderedDict([('attributes',
|
||||
OrderedDict([
|
||||
('type', 'RecordType'),
|
||||
('url', '/services/data/v57.0/sobjects/RecordType/0125i000000RUqOAAW')])),
|
||||
('DeveloperName', 'RecordTypeNormal'),
|
||||
])
|
||||
|
||||
}
|
||||
assert dict(actual[0]) == expect
|
||||
"""
|
||||
|
||||
assert len(actual) > 0
|
||||
assert dict(actual[0])["RecordType"]["DeveloperName"] == "RecordTypeNormal"
|
||||
# assert dict(actual[1])["RecordType"]["DeveloperName"] == "RecordTypeNormal"
|
||||
# assert dict(actual[2])["RecordType"]["DeveloperName"] == "RecordTypeNormal"
|
||||
# assert dict(actual[3])["RecordType"]["DeveloperName"] == "RecordTypeSpecial"
|
||||
# assert dict(actual[4])["RecordType"]["DeveloperName"] == "RecordTypeSpecial"
|
||||
|
||||
def test_fetch_sf_data_relationship_object_depth_2(self):
|
||||
"""
|
||||
@ -358,25 +334,6 @@ class TestSalesforceApiClient:
|
||||
|
||||
actual = sut.fetch_sf_data(soql)
|
||||
assert len(actual) > 0
|
||||
"""
|
||||
expect = OrderedDict([('attributes',
|
||||
OrderedDict([
|
||||
('type', 'RelationshipTest_Child__c'),
|
||||
('url', '/services/data/v57.0/sobjects/RelationshipTest_Child__c/a035i00000FW1qNAAT')])),
|
||||
('Id', 'a035i00000FW1qNAAT'),
|
||||
('Name', 'A-0001'),
|
||||
('RelationshipTest__r',
|
||||
OrderedDict([
|
||||
('attributes', OrderedDict(
|
||||
[('type', 'RelationshipTest__c'),
|
||||
('url', '/services/data/v57.0/sobjects/RelationshipTest__c/a025i00000RleEHAAZ')])),
|
||||
('RecordType',
|
||||
OrderedDict([('attributes',
|
||||
OrderedDict([('type', 'RecordType'),
|
||||
('url', '/services/data/v57.0/sobjects/RecordType/0125i000000RUqOAAW')])),
|
||||
('DeveloperName', 'RecordTypeNormal')]))]))])
|
||||
assert dict(actual[0]) == expect
|
||||
"""
|
||||
assert dict(actual[0])["RelationshipTest__r"]["RecordType"]["DeveloperName"] == "RecordTypeNormal"
|
||||
|
||||
def test_fetch_sf_data_by_soql_builder_system_modstamp_to_ge(self):
|
||||
@ -695,24 +652,6 @@ class TestSalesforceApiClient:
|
||||
|
||||
actual = sut.fetch_sf_data(soql)
|
||||
assert len(actual) > 0
|
||||
""""
|
||||
excepts = OrderedDict(
|
||||
[('attributes', OrderedDict([
|
||||
('type', 'RelationshipTest_Child__c'),
|
||||
('url', '/services/data/v57.0/sobjects/RelationshipTest_Child__c/a035i00000FW1qPAAT')])),
|
||||
('Id', 'a035i00000FW1qPAAT'),
|
||||
('Name', 'A-0009'),
|
||||
('RelationshipTest__r', OrderedDict([
|
||||
('attributes', OrderedDict(
|
||||
[('type', 'RelationshipTest__c'),
|
||||
('url', '/services/data/v57.0/sobjects/RelationshipTest__c/a025i00000RleESAAZ')])),
|
||||
('RecordType', OrderedDict([
|
||||
('attributes', OrderedDict([
|
||||
('type', 'RecordType'),
|
||||
('url', '/services/data/v57.0/sobjects/RecordType/0125i000000RUqTAAW')])),
|
||||
('DeveloperName', 'RecordTypeSpecial')]))]))])
|
||||
assert f"{actual[0]}" == "aaaaa"
|
||||
"""
|
||||
assert dict(actual[0])["RelationshipTest__r"]["RecordType"]["DeveloperName"] == "RecordTypeSpecial"
|
||||
|
||||
def test_raise_create_instance_cause_auth_failed(self, monkeypatch):
|
||||
|
||||
@ -38,7 +38,7 @@
|
||||
"Clm_Presentation_Name_vod__c",
|
||||
"Clm_Presentation_Version_vod__c",
|
||||
"Clm_Presentation_vod__c",
|
||||
"Call2_vod___r.RecordTypeId"
|
||||
"Call2_vod__r.RecordTypeId"
|
||||
],
|
||||
"is_skip": false,
|
||||
"is_update_last_fetch_datetime": true
|
||||
@ -63,7 +63,7 @@
|
||||
"Mobile_ID_vod__c",
|
||||
"Override_Lock_vod__c",
|
||||
"Type_vod__c",
|
||||
"Call2_vod___r.RecordTypeId"
|
||||
"Call2_vod__r.RecordTypeId"
|
||||
],
|
||||
"is_skip": false,
|
||||
"is_update_last_fetch_datetime": true
|
||||
@ -964,7 +964,7 @@
|
||||
"AuxillaryId_vod__c",
|
||||
"ParentId_vod__c",
|
||||
"Revision_vod__c",
|
||||
"Call2_vod___r.RecordTypeId"
|
||||
"Call2_vod__r.RecordTypeId"
|
||||
],
|
||||
"is_skip": false,
|
||||
"is_update_last_fetch_datetime": true
|
||||
@ -1016,7 +1016,7 @@
|
||||
"EMDS_Topic__c",
|
||||
"MSJ_Visit_Purpose__c",
|
||||
"MSJ_Insight_Count__c",
|
||||
"Call2_vod___r.RecordTypeId"
|
||||
"Call2_vod__r.RecordTypeId"
|
||||
],
|
||||
"is_skip": false,
|
||||
"is_update_last_fetch_datetime": true
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user