tl;dr How can I test the viability of an update or insert using the simple-salesforce python package?
I am writing a test script for a simple-salesforce based python class I have created. The class involves sf.bulk.Object_Name__c.insert(data) and sf.bulk.Object_Name__c.update(data) code, but in the test script I would like to confirm that the insert/update would insert successfully or not, without actually committing the new record or change.
The only item I saw that suggested this might be possible was a page in the Simple-Salesforce documentation noting the existence of the simple_salesforce.tests.test_util module. Unfortunately, I was not able figure out how to access this sub-module, or subsequently try out the test_util class, and the document was quite sparse on instructions on how to do so.
Aucun commentaire:
Enregistrer un commentaire