Skip to content

Commit

Permalink
In python3, query param order is unpredictable.
Browse files Browse the repository at this point in the history
  • Loading branch information
ryneeverett committed Nov 9, 2016
1 parent 9d909af commit 3f0f369
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_activecollab2.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,11 @@ def test_to_taskwarrior(self):
def test_issues(self):
self.add_response(
re.compile(
'http://hello/\?token=howdy&path_info=%2Fprojects%2F[1-2]%2Fuser-tasks&format=json'),
'http://hello/\?(?=.*token=howdy)(?=.*path_info=\%2Fprojects\%2F[1-2]\%2Fuser-tasks)(?=.*format=json)'),
json=[self.arbitrary_issue])

self.add_response(
'http://hello/?token=howdy&path_info=%2Fprojects%2F20%2Ftickets%2F10&format=json',
re.compile(
'http://hello/\?(?=.*token=howdy)(?=.*path_info=\%2Fprojects\%2F20\%2Ftickets\%2F10)(?=.*format=json)'),
json=self.arbitrary_issue)

issue = next(self.service.issues())
Expand Down

0 comments on commit 3f0f369

Please sign in to comment.