Skip to content

Commit

Permalink
Fix unstable ordering across python versions
Browse files Browse the repository at this point in the history
  • Loading branch information
erik committed Mar 10, 2018
1 parent 0907857 commit d21d99a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_dump.py
Original file line number Diff line number Diff line change
Expand Up @@ -453,8 +453,8 @@ class TestSchema(Schema):
dumped = json_schema.dump(schema).data

assert dumped['definitions']['TestSchema']['properties']['foo'] == {
'enum': [0, 1, 2],
'enumNames': ['a', 'b', 'c'],
'enum': [v for v in mapping.values()],
'enumNames': [k for k in mapping.keys()],
'format': 'integer',
'title': 'foo',
'type': 'number'
Expand Down

0 comments on commit d21d99a

Please sign in to comment.