Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
snopoke committed Jul 7, 2021
1 parent 4831e99 commit 35157a4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/test_commcare_hq_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,16 +79,16 @@ def _get_results(self, params):

class FakeMessageLogSession(FakeSession):
def _get_results(self, params):
obj_1 = {'id': 1, 'foo': 1, 'date': '2017-01-01T15:36:22Z'}
obj_2 = {'id': 2, 'foo': 2, 'date': '2017-01-01T15:37:22Z'}
obj_3 = {'id': 3, 'foo': 3, 'date': '2017-01-01T15:38:22Z'}
obj_1 = {'id': 1, 'foo': 1, 'date_last_activity': '2017-01-01T15:36:22Z'}
obj_2 = {'id': 2, 'foo': 2, 'date_last_activity': '2017-01-01T15:37:22Z'}
obj_3 = {'id': 3, 'foo': 3, 'date_last_activity': '2017-01-01T15:38:22Z'}
if not params:
return {
'meta': {'next': '?cursor=xyz', 'limit': 2},
'objects': [obj_1, obj_2]
}
else:
since_query_param = DATE_PARAMS['date'].start_param
since_query_param = DATE_PARAMS['date_last_activity'].start_param
since = params[since_query_param]
if since == '2017-01-01T15:37:22':
return {
Expand Down

0 comments on commit 35157a4

Please sign in to comment.