Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More tests for Salesforce Stuff #442

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

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