Issue:
A custom object has a look up field to Opportunity called 'Opportunity__c'. KeyError was encountered when running Pytest on 'Opportunity__c' when the record of the custom object is being upserted.
Expected Behaviour
Since the object name can be inferred from the custom field name, expected behavior would be the system recognizing that the relational field points to Opportunity without adding it to relations.json
Workaround
Add "Opportunity__r": "Opportunity" to relations.json
Issue:
A custom object has a look up field to Opportunity called 'Opportunity__c'. KeyError was encountered when running Pytest on 'Opportunity__c' when the record of the custom object is being upserted.
Expected Behaviour
Since the object name can be inferred from the custom field name, expected behavior would be the system recognizing that the relational field points to Opportunity without adding it to relations.json
Workaround
Add "Opportunity__r": "Opportunity" to relations.json