From 541caa117eedf74923c2ed396afeee5fd568850e Mon Sep 17 00:00:00 2001 From: Firas K <3097061+firaskafri@users.noreply.github.com> Date: Sat, 24 Sep 2022 15:50:40 +0300 Subject: [PATCH] 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 --- graphene_django/tests/test_get_queryset.py | 12 +++++++++--- setup.py | 3 +-- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/graphene_django/tests/test_get_queryset.py b/graphene_django/tests/test_get_queryset.py index b2647c3..91bdc70 100644 --- a/graphene_django/tests/test_get_queryset.py +++ b/graphene_django/tests/test_get_queryset.py @@ -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"] == { diff --git a/setup.py b/setup.py index 3a46d24..d9aefef 100644 --- a/setup.py +++ b/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",