Fixes related to pr#1412 (#1352)

* fix: setup.py graphene dependency

* fix: graphene_django/tests/test_get_queryset.py format

Co-authored-by: Firas Kafri <firaskafri@Firass-MacBook-Pro-2.local>
This commit is contained in:
Firas K 2022-09-24 15:50:40 +03:00 committed by GitHub
parent 0f40da7b31
commit 541caa117e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 5 deletions

View File

@ -114,7 +114,9 @@ class TestShouldCallGetQuerySetOnForeignKey:
"""
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 result.data == {"reporter": {"firstName": "Jane"}}
@ -149,7 +151,9 @@ class TestShouldCallGetQuerySetOnForeignKey:
"""
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 result.data["article"] == {
@ -170,7 +174,9 @@ class TestShouldCallGetQuerySetOnForeignKey:
"""
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 result.data["reporter"] == {

View File

@ -59,8 +59,7 @@ setup(
keywords="api graphql protocol rest relay graphene",
packages=find_packages(exclude=["tests", "examples", "examples.*"]),
install_requires=[
# "graphene>=3.0,<4",
"graphene @ git+https://github.com/loft-orbital/graphene.git@loft-v3-1.0#egg=graphene",
"graphene>=3.0,<4",
"graphql-core>=3.1.0,<4",
"graphql-relay>=3.1.1,<4",
"Django>=3.2",