Skip to content

Commit

Permalink
Upgrade to current adit and adit-radis-shared
Browse files Browse the repository at this point in the history
  • Loading branch information
medihack committed Dec 25, 2024
1 parent 824699e commit 525e4ea
Show file tree
Hide file tree
Showing 5 changed files with 239 additions and 20 deletions.
Empty file added adit_client/utils/__init__.py
Empty file.
6 changes: 2 additions & 4 deletions tests/conftest.py → adit_client/utils/testing_helpers.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
import pytest
from adit_radis_shared.accounts.models import User
from adit_radis_shared.common.utils.auth_utils import add_user_to_group
from adit_radis_shared.common.utils.testing_helpers import add_user_to_group
from adit_radis_shared.token_authentication.models import Token
from django.contrib.auth.models import Group


@pytest.fixture
def admin_with_group_and_token():
def create_admin_with_group_and_token():
user: User = User.objects.create_superuser("admin")
group = Group.objects.create(name="Staff")
add_user_to_group(user, group)
Expand Down
Loading

0 comments on commit 525e4ea

Please sign in to comment.