2020-09-11 23:07:19 +02:00
|
|
|
from django.test import TestCase
|
2020-09-10 22:30:29 +02:00
|
|
|
from django.contrib.auth.models import User
|
2020-09-03 20:06:06 +02:00
|
|
|
|
2020-09-11 23:07:19 +02:00
|
|
|
class BaseData(TestCase):
|
2020-09-03 20:11:02 +02:00
|
|
|
|
2020-09-11 23:07:19 +02:00
|
|
|
@classmethod
|
|
|
|
def setUpTestData(cls):
|
|
|
|
User.objects.create_user(
|
2020-09-03 20:06:06 +02:00
|
|
|
username='testpeter',
|
|
|
|
password='Develop123'
|
2020-09-11 23:07:19 +02:00
|
|
|
).save()
|