Skip to content

Commit 541caa1

Browse files
firaskafriFiras Kafri
andauthored
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 <[email protected]>
1 parent 0f40da7 commit 541caa1

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

graphene_django/tests/test_get_queryset.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,9 @@ def test_get_queryset_called_on_field(self):
114114
"""
115115

116116
result = self.schema.execute(
117-
query, variables={"id": self.reporter.id}, context_value={"admin": True},
117+
query,
118+
variables={"id": self.reporter.id},
119+
context_value={"admin": True},
118120
)
119121
assert not result.errors
120122
assert result.data == {"reporter": {"firstName": "Jane"}}
@@ -149,7 +151,9 @@ def test_get_queryset_called_on_foreignkey(self):
149151
"""
150152

151153
result = self.schema.execute(
152-
query, variables={"id": self.articles[0].id}, context_value={"admin": True},
154+
query,
155+
variables={"id": self.articles[0].id},
156+
context_value={"admin": True},
153157
)
154158
assert not result.errors
155159
assert result.data["article"] == {
@@ -170,7 +174,9 @@ def test_get_queryset_called_on_foreignkey(self):
170174
"""
171175

172176
result = self.schema.execute(
173-
query, variables={"id": self.reporter.id}, context_value={"admin": True},
177+
query,
178+
variables={"id": self.reporter.id},
179+
context_value={"admin": True},
174180
)
175181
assert not result.errors
176182
assert result.data["reporter"] == {

setup.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,7 @@
5959
keywords="api graphql protocol rest relay graphene",
6060
packages=find_packages(exclude=["tests", "examples", "examples.*"]),
6161
install_requires=[
62-
# "graphene>=3.0,<4",
63-
"graphene @ git+https://github.com/loft-orbital/[email protected]#egg=graphene",
62+
"graphene>=3.0,<4",
6463
"graphql-core>=3.1.0,<4",
6564
"graphql-relay>=3.1.1,<4",
6665
"Django>=3.2",

0 commit comments

Comments
 (0)