mirror of
https://github.com/graphql-python/graphene-django.git
synced 2024-11-21 17:16:56 +03:00
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:
parent
0f40da7b31
commit
541caa117e
|
@ -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"] == {
|
||||
|
|
3
setup.py
3
setup.py
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue
Block a user