From b5ba046c548e61073e8b5c20d678b652ffe53507 Mon Sep 17 00:00:00 2001 From: Wong Chun Hong Date: Wed, 30 Aug 2023 21:14:56 +0100 Subject: [PATCH] tests compatible with pytest v7 --- graphene/relay/tests/test_custom_global_id.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/graphene/relay/tests/test_custom_global_id.py b/graphene/relay/tests/test_custom_global_id.py index c1bf0fb4..8f799140 100644 --- a/graphene/relay/tests/test_custom_global_id.py +++ b/graphene/relay/tests/test_custom_global_id.py @@ -9,7 +9,7 @@ from ...types import Int, ObjectType, Schema, String class TestUUIDGlobalID: - def setup(self): + def setup_method(self): self.user_list = [ {"id": uuid4(), "name": "First"}, {"id": uuid4(), "name": "Second"}, @@ -77,7 +77,7 @@ class TestUUIDGlobalID: class TestSimpleGlobalID: - def setup(self): + def setup_method(self): self.user_list = [ {"id": "my global primary key in clear 1", "name": "First"}, {"id": "my global primary key in clear 2", "name": "Second"}, @@ -140,7 +140,7 @@ class TestSimpleGlobalID: class TestCustomGlobalID: - def setup(self): + def setup_method(self): self.user_list = [ {"id": 1, "name": "First"}, {"id": 2, "name": "Second"}, @@ -219,7 +219,7 @@ class TestCustomGlobalID: class TestIncompleteCustomGlobalID: - def setup(self): + def setup_method(self): self.user_list = [ {"id": 1, "name": "First"}, {"id": 2, "name": "Second"},