Skip to content

More tests for Salesforce Stuff#442

Open
prescod wants to merge 4 commits intomainfrom
feature/more-salesforce-tests
Open

More tests for Salesforce Stuff#442
prescod wants to merge 4 commits intomainfrom
feature/more-salesforce-tests

Conversation

@prescod
Copy link
Contributor

@prescod prescod commented Jul 15, 2021

Unit test for some of the Salesforce query features.

@prescod prescod requested a review from a team as a code owner July 15, 2021 01:24
class TestSalesforceConnection:
def test_bad_kwargs(self):
sfc = SalesforceConnection(None)
with pytest.raises(exc.DataGenError, match="Unknown argument"):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the unknown argument xyzzy or is it the blah field? It would be nice if the error message included the name of the unknown argument.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants