Formatting

This commit is contained in:
Thomas Leonard 2020-07-28 10:23:40 +01:00
parent 05d0864f4d
commit 2f750abcae

View File

@ -1345,14 +1345,14 @@ def test_connection_should_enable_offset_filtering():
result = schema.execute(query) result = schema.execute(query)
assert not result.errors assert not result.errors
expected = { expected = {
"allReporters": { "allReporters": {"edges": [{"node": {"firstName": "Some", "lastName": "Guy"}},]}
"edges": [{"node": {"firstName": "Some", "lastName": "Guy"}}, ]
}
} }
assert result.data == expected 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 graphene_settings.RELAY_CONNECTION_MAX_LIMIT = 2
Reporter.objects.create(first_name="John", last_name="Doe") Reporter.objects.create(first_name="John", last_name="Doe")
Reporter.objects.create(first_name="Some", last_name="Guy") Reporter.objects.create(first_name="Some", last_name="Guy")
@ -1452,8 +1452,6 @@ def test_connection_should_allow_offset_filtering_with_after():
result = schema.execute(query, variable_values=dict(after=after)) result = schema.execute(query, variable_values=dict(after=after))
assert not result.errors assert not result.errors
expected = { expected = {
"allReporters": { "allReporters": {"edges": [{"node": {"firstName": "Jane", "lastName": "Roe"}},]}
"edges": [{"node": {"firstName": "Jane", "lastName": "Roe"}}, ]
}
} }
assert result.data == expected assert result.data == expected