lostplaces-backend/lostplaces/lostplaces_app/tests/__init__.py

11 lines
268 B
Python
Raw Normal View History

2020-09-11 23:07:19 +02:00
from django.test import TestCase
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()