|
1 |
| -import json |
2 | 1 | import pytest
|
3 | 2 |
|
4 | 3 | import graphene
|
@@ -271,8 +270,7 @@ class Query(graphene.ObjectType):
|
271 | 270 | schema = graphene.Schema(query=Query)
|
272 | 271 | result = schema.execute(query)
|
273 | 272 | assert not result.errors
|
274 |
| - assert json.dumps(result.data, sort_keys=True) == json.dumps( |
275 |
| - expected, sort_keys=True) |
| 273 | + assert result.data == expected |
276 | 274 |
|
277 | 275 |
|
278 | 276 | def test_should_filter_by_reference_field(fixtures):
|
@@ -312,8 +310,7 @@ class Query(graphene.ObjectType):
|
312 | 310 | schema = graphene.Schema(query=Query)
|
313 | 311 | result = schema.execute(query)
|
314 | 312 | assert not result.errors
|
315 |
| - assert json.dumps(result.data, sort_keys=True) == json.dumps( |
316 |
| - expected, sort_keys=True) |
| 313 | + assert result.data == expected |
317 | 314 |
|
318 | 315 |
|
319 | 316 | def test_should_filter_through_inheritance(fixtures):
|
@@ -357,8 +354,7 @@ class Query(graphene.ObjectType):
|
357 | 354 | schema = graphene.Schema(query=Query)
|
358 | 355 | result = schema.execute(query)
|
359 | 356 | assert not result.errors
|
360 |
| - assert json.dumps(result.data, sort_keys=True) == json.dumps( |
361 |
| - expected, sort_keys=True) |
| 357 | + assert result.data == expected |
362 | 358 |
|
363 | 359 |
|
364 | 360 | def test_should_filter_by_list_contains(fixtures):
|
|
0 commit comments