Правки логики
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
from core.test_utils import grant_all_locations
|
||||
from datetime import date
|
||||
|
||||
from django.contrib.auth import get_user_model
|
||||
@@ -137,6 +138,7 @@ class CashRegisterPortalTests(TestCase):
|
||||
ad_sync_enabled=False,
|
||||
totp_enabled=True,
|
||||
)
|
||||
grant_all_locations(cls.user)
|
||||
grant_rro_access(cls.user)
|
||||
|
||||
def _login(self):
|
||||
@@ -312,6 +314,7 @@ class CashRegisterCrudTests(TestCase):
|
||||
mattermost_sync_enabled=False,
|
||||
ad_sync_enabled=False,
|
||||
)
|
||||
grant_all_locations(cls.staff)
|
||||
grant_rro_access(cls.staff)
|
||||
|
||||
def _login(self, user):
|
||||
|
||||
Reference in New Issue
Block a user