Skip to content

Commit 50c9be0

Browse files
committed
modify AsyncUnitTest class's setup_class and tearDown_class
1 parent 61e2eef commit 50c9be0

File tree

4 files changed

+4
-20
lines changed

4 files changed

+4
-20
lines changed

test/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -947,11 +947,11 @@ def tearDownClass(cls):
947947

948948
@classmethod
949949
def _setup_class(cls):
950-
cls._setup_class()
950+
pass
951951

952952
@classmethod
953953
def _tearDown_class(cls):
954-
cls._tearDown_class()
954+
pass
955955

956956

957957
class IntegrationTest(PyMongoTestCase):

test/asynchronous/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -949,11 +949,11 @@ def tearDownClass(cls):
949949

950950
@classmethod
951951
async def _setup_class(cls):
952-
await cls._setup_class()
952+
pass
953953

954954
@classmethod
955955
async def _tearDown_class(cls):
956-
await cls._tearDown_class()
956+
pass
957957

958958

959959
class AsyncIntegrationTest(AsyncPyMongoTestCase):

test/asynchronous/test_client_context.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,6 @@
2424

2525

2626
class TestAsyncClientContext(AsyncUnitTest):
27-
@classmethod
28-
async def _setup_class(cls):
29-
pass
30-
31-
@classmethod
32-
async def _tearDown_class(cls):
33-
pass
34-
3527
def test_must_connect(self):
3628
if "PYMONGO_MUST_CONNECT" not in os.environ:
3729
raise SkipTest("PYMONGO_MUST_CONNECT is not set")

test/test_client_context.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,6 @@
2424

2525

2626
class TestClientContext(UnitTest):
27-
@classmethod
28-
def _setup_class(cls):
29-
pass
30-
31-
@classmethod
32-
def _tearDown_class(cls):
33-
pass
34-
3527
def test_must_connect(self):
3628
if "PYMONGO_MUST_CONNECT" not in os.environ:
3729
raise SkipTest("PYMONGO_MUST_CONNECT is not set")

0 commit comments

Comments
 (0)