Skip to content

Commit

Permalink
BaseTests.ar check response data is dict instead of OrderedDict
Browse files Browse the repository at this point in the history
  • Loading branch information
k1o0 committed Mar 21, 2024
1 parent fd65724 commit eacd85a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion alyx/alyx/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@ def ar(self, r, code=200):
"""
self.assertTrue(r.status_code == code, r.data)
pkeys = {'count', 'next', 'previous', 'results'}
if isinstance(r.data, OrderedDict) and set(r.data.keys()) == pkeys:
if isinstance(r.data, dict) and set(r.data.keys()) == pkeys:
return r.data['results']
else:
return r.data
Expand Down

0 comments on commit eacd85a

Please sign in to comment.