Skip to content

Commit

Permalink
tests compatible with pytest v7
Browse files Browse the repository at this point in the history
  • Loading branch information
wongcht committed Aug 30, 2023
1 parent 2f7ad74 commit b5ba046
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions graphene/relay/tests/test_custom_global_id.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@


class TestUUIDGlobalID:
def setup(self):
def setup_method(self):
self.user_list = [
{"id": uuid4(), "name": "First"},
{"id": uuid4(), "name": "Second"},
Expand Down Expand Up @@ -77,7 +77,7 @@ def test_get_by_id(self):


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"},
Expand Down Expand Up @@ -140,7 +140,7 @@ def test_get_by_id(self):


class TestCustomGlobalID:
def setup(self):
def setup_method(self):
self.user_list = [
{"id": 1, "name": "First"},
{"id": 2, "name": "Second"},
Expand Down Expand Up @@ -219,7 +219,7 @@ def test_get_by_id(self):


class TestIncompleteCustomGlobalID:
def setup(self):
def setup_method(self):
self.user_list = [
{"id": 1, "name": "First"},
{"id": 2, "name": "Second"},
Expand Down

0 comments on commit b5ba046

Please sign in to comment.