diff --git a/graphene_django/tests/test_query.py b/graphene_django/tests/test_query.py index f6faa7c..6add0b8 100644 --- a/graphene_django/tests/test_query.py +++ b/graphene_django/tests/test_query.py @@ -1345,14 +1345,14 @@ def test_connection_should_enable_offset_filtering(): result = schema.execute(query) assert not result.errors expected = { - "allReporters": { - "edges": [{"node": {"firstName": "Some", "lastName": "Guy"}}, ] - } + "allReporters": {"edges": [{"node": {"firstName": "Some", "lastName": "Guy"}},]} } assert result.data == expected -def test_connection_should_enable_offset_filtering_higher_than_max_limit(graphene_settings): +def test_connection_should_enable_offset_filtering_higher_than_max_limit( + graphene_settings, +): graphene_settings.RELAY_CONNECTION_MAX_LIMIT = 2 Reporter.objects.create(first_name="John", last_name="Doe") Reporter.objects.create(first_name="Some", last_name="Guy") @@ -1385,7 +1385,7 @@ def test_connection_should_enable_offset_filtering_higher_than_max_limit(graphen assert not result.errors expected = { "allReporters": { - "edges": [{"node": {"firstName": "Some", "lastName": "Lady"}}, ] + "edges": [{"node": {"firstName": "Some", "lastName": "Lady"}},] } } assert result.data == expected @@ -1452,8 +1452,6 @@ def test_connection_should_allow_offset_filtering_with_after(): result = schema.execute(query, variable_values=dict(after=after)) assert not result.errors expected = { - "allReporters": { - "edges": [{"node": {"firstName": "Jane", "lastName": "Roe"}}, ] - } + "allReporters": {"edges": [{"node": {"firstName": "Jane", "lastName": "Roe"}},]} } assert result.data == expected