Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Djangoでテストデータを作成するときはsetUpTestDataを使う ref:
from test.common_data import UserFactory
class Test(TestCase):
def setUpTestData(cls):
cls.user = UserFactory.create()
def test_1(self):
print( # 1
def test_2(self):
print( # 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.