Skip to content

Commit 9a72fda

Browse files
Applied changes as suggested by black
1 parent ecf4e7b commit 9a72fda

File tree

2 files changed

+15
-20
lines changed

2 files changed

+15
-20
lines changed

examples/django_test_settings.py

Lines changed: 12 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2,34 +2,29 @@
22
import os
33

44
ROOT_PATH = os.path.dirname(os.path.abspath(__file__))
5-
sys.path.insert(0, ROOT_PATH + '/examples/')
5+
sys.path.insert(0, ROOT_PATH + "/examples/")
66

77
SECRET_KEY = 1
88

99
INSTALLED_APPS = [
10-
'graphene_django',
11-
'graphene_django.rest_framework',
12-
'graphene_django.tests',
13-
'examples.starwars',
10+
"graphene_django",
11+
"graphene_django.rest_framework",
12+
"graphene_django.tests",
13+
"examples.starwars",
1414
]
1515

1616
DATABASES = {
17-
'default': {
18-
'ENGINE': 'django.db.backends.sqlite3',
19-
'NAME': 'django_test.sqlite',
20-
}
17+
"default": {"ENGINE": "django.db.backends.sqlite3", "NAME": "django_test.sqlite"}
2118
}
2219

2320
TEMPLATES = [
2421
{
25-
'BACKEND': 'django.template.backends.django.DjangoTemplates',
26-
'DIRS': [],
27-
'APP_DIRS': True,
28-
},
22+
"BACKEND": "django.template.backends.django.DjangoTemplates",
23+
"DIRS": [],
24+
"APP_DIRS": True,
25+
}
2926
]
3027

31-
GRAPHENE = {
32-
'SCHEMA': 'graphene_django.tests.schema_view.schema'
33-
}
28+
GRAPHENE = {"SCHEMA": "graphene_django.tests.schema_view.schema"}
3429

35-
ROOT_URLCONF = 'graphene_django.tests.urls'
30+
ROOT_URLCONF = "graphene_django.tests.urls"

graphene_django/tests/test_fields.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ def resolve_reporters(_, info):
267267
result = schema.execute(query)
268268

269269
assert not result.errors
270-
assert result.data == {"reporters": [{"firstName": "Tara"},]}
270+
assert result.data == {"reporters": [{"firstName": "Tara"}]}
271271

272272
def test_resolve_list(self):
273273
"""Resolving a plain list should work (and not call get_queryset)"""
@@ -314,7 +314,7 @@ def resolve_reporters(_, info):
314314
result = schema.execute(query)
315315

316316
assert not result.errors
317-
assert result.data == {"reporters": [{"firstName": "Debra"},]}
317+
assert result.data == {"reporters": [{"firstName": "Debra"}]}
318318

319319
def test_get_queryset_foreign_key(self):
320320
class Article(DjangoObjectType):
@@ -371,7 +371,7 @@ class Query(ObjectType):
371371
assert not result.errors
372372
assert result.data == {
373373
"reporters": [
374-
{"firstName": "Tara", "articles": [{"headline": "Amazing news"},],},
374+
{"firstName": "Tara", "articles": [{"headline": "Amazing news"}]},
375375
{"firstName": "Debra", "articles": []},
376376
]
377377
}

0 commit comments

Comments
 (0)