Skip to content

Commit

Permalink
fix: make context be explicitly named to Cursor in call
Browse files Browse the repository at this point in the history
  • Loading branch information
donbowman committed Mar 13, 2019
1 parent 6248f4d commit 7fc18fb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/db/test_cursor.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,12 @@ def test_context(self, requests_post_mock):
query = 'SELECT * FROM table'
context = {'source': 'unittest'}

cursor = Cursor(url, context)
cursor = Cursor(url, user=None, password=None, context=context)
cursor.execute(query)

requests_post_mock.assert_called_with(
'http://example.com/',
auth=None,
stream=True,
headers={'Content-Type': 'application/json'},
json={'query': query, 'context': context},
Expand Down

0 comments on commit 7fc18fb

Please sign in to comment.