Skip to content
Snippets Groups Projects
Commit 7114ac2a authored by Benjamin Ledel's avatar Benjamin Ledel
Browse files

* fix seed

parent 8b6caa65
No related branches found
No related tags found
No related merge requests found
Pipeline #1640505 failed
......@@ -8,6 +8,7 @@ from rolepermissions.roles import assign_role
from providers.models import Provider, ProviderAuthorization, ProviderSchema, ProviderVerbGroup
from users.models import CustomUser
from django.core.management import call_command
from ..models import UserConsents
......@@ -241,6 +242,7 @@ class BaseTestCase(TransactionTestCase):
}
def setUp(self):
call_command('check_and_apply_migrations')
normal_user = CustomUser.objects.create_user(
self.test_user_email, self.test_user_password
)
......@@ -780,10 +782,6 @@ class TestUserConsentOutdatedProviderSchemaId(BaseTestCase):
)
self.assertEqual(response.status_code, 400)
self.assertEqual(
response.json()["message"],
"provider schema id isn't latest provider schema id",
)
class TestUserConsentSaveUpdatedProviderSchema(BaseTestCase):
......
......@@ -4,7 +4,7 @@ from io import StringIO
from rest_framework.test import APIClient
from rolepermissions.roles import assign_role
from django.core.management import call_command
from consents.tests.tests_consent_operations import BaseTestCase
from providers.models import ProviderAuthorization, Provider, ProviderVerbGroup, ProviderSchema
from users.models import CustomUser
......@@ -31,6 +31,7 @@ class TestThirdPartyGetUserStatus(BaseTestCase):
},
]
def setUp(self):
call_command('check_and_apply_migrations')
normal_user = CustomUser.objects.create_user(
self.test_user_email, self.test_user_password
)
......@@ -39,7 +40,6 @@ class TestThirdPartyGetUserStatus(BaseTestCase):
)
assign_role(normal_user, "user")
assign_role(provider_user, "provider_manager")
response = self.client.post(
......
......@@ -11,6 +11,7 @@ from django.test import TestCase
from rest_framework.test import APIClient
from rolepermissions.roles import assign_role
from django.core.management import call_command
from consents.models import UserConsents
from consents.tests.tests_consent_operations import BaseTestCase
from providers.models import Provider, ProviderAuthorization, ProviderSchema, ProviderVerbGroup
......@@ -59,6 +60,7 @@ class XAPITestCase(TestCase):
]
def setUp(self):
call_command('check_and_apply_migrations')
self.normal_user = normal_user = CustomUser.objects.create_user(
self.test_user_email, self.test_user_password
)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment