Skip to content

Commit ae1f1d1

Browse files
committed
fix: derive from TestCase
1 parent 886ffe6 commit ae1f1d1

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

mixin.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
class MyMixin:
2+
@classmethod
23
def setUpClass(cls):
34
print('MyMixin.setUpClass', cls)

mod1/__init__.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1+
from unittest import TestCase
2+
13
from mixin import MyMixin
24

35

4-
class FirstTestCase(MyMixin):
6+
class FirstTestCase(MyMixin, TestCase):
57
def test_1st(self):
68
print("test_1st", self)

0 commit comments

Comments
 (0)