8000 Updated unit test so that it will pass with requests 2.0.1 · pythonthings/github3.py@572257f · GitHub
[go: up one dir, main page]

Skip to content

Commit 572257f

Browse files
Updated unit test so that it will pass with requests 2.0.1
1 parent 8b56321 commit 572257f

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

tests/unit/test_git.py

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,13 @@ def test_update(self):
7575
"""Show that a user can update the reference."""
7676

7777
self.instance.update('fakesha', True)
78-
self.session.patch.assert_called_once_with(
79-
delete_url_for(),
80-
data='{"sha": "fakesha", "force": true}'
81-
)
78+
try:
79+
self.session.patch.assert_called_once_with(
80+
delete_url_for(),
81+
data='{"force": true, "sha": "fakesha"}'
82+
)
83+
except AssertionError:
84+
self.session.patch.assert_called_once_with(
85+
delete_url_for(),
86+
data='{"sha": "fakesha", "force": true}'
87+
)

0 commit comments

Comments
 (0)
0