<filename>src/core/tests/utils/base.py
from django.contrib.auth import get_user_model
from rest_framework.test import APITestCase

from core.tests.utils import fabrics as f

User = get_user_model()


class BaseAPITestCase(APITestCase):
    fixtures = ['tests_data.json']

    def setUp(self) -> None:
        self.staff_user1 = User.objects.get(username='user1')
        self.iban = f.IBAN
        self.client.force_authenticate(user=self.staff_user1)
