mirror of
https://github.com/graphql-python/graphene-django.git
synced 2025-07-10 16:22:20 +03:00
fix: graphene_django/tests/test_get_queryset.py format
This commit is contained in:
parent
72b91b954f
commit
b9f14b02ff
|
@ -114,7 +114,9 @@ class TestShouldCallGetQuerySetOnForeignKey:
|
||||||
"""
|
"""
|
||||||
|
|
||||||
result = self.schema.execute(
|
result = self.schema.execute(
|
||||||
query, variables={"id": self.reporter.id}, context_value={"admin": True},
|
query,
|
||||||
|
variables={"id": self.reporter.id},
|
||||||
|
context_value={"admin": True},
|
||||||
)
|
)
|
||||||
assert not result.errors
|
assert not result.errors
|
||||||
assert result.data == {"reporter": {"firstName": "Jane"}}
|
assert result.data == {"reporter": {"firstName": "Jane"}}
|
||||||
|
@ -149,7 +151,9 @@ class TestShouldCallGetQuerySetOnForeignKey:
|
||||||
"""
|
"""
|
||||||
|
|
||||||
result = self.schema.execute(
|
result = self.schema.execute(
|
||||||
query, variables={"id": self.articles[0].id}, context_value={"admin": True},
|
query,
|
||||||
|
variables={"id": self.articles[0].id},
|
||||||
|
context_value={"admin": True},
|
||||||
)
|
)
|
||||||
assert not result.errors
|
assert not result.errors
|
||||||
assert result.data["article"] == {
|
assert result.data["article"] == {
|
||||||
|
@ -170,7 +174,9 @@ class TestShouldCallGetQuerySetOnForeignKey:
|
||||||
"""
|
"""
|
||||||
|
|
||||||
result = self.schema.execute(
|
result = self.schema.execute(
|
||||||
query, variables={"id": self.reporter.id}, context_value={"admin": True},
|
query,
|
||||||
|
variables={"id": self.reporter.id},
|
||||||
|
context_value={"admin": True},
|
||||||
)
|
)
|
||||||
assert not result.errors
|
assert not result.errors
|
||||||
assert result.data["reporter"] == {
|
assert result.data["reporter"] == {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user