This repository has been archived by the owner on Nov 20, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
22 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,14 +3,14 @@ | |
from django.core.management import call_command | ||
from django.test import Client | ||
from ninja_jwt.tokens import RefreshToken | ||
from api.tests.factories import UserFactory | ||
|
||
client = Client() | ||
|
||
|
||
# @pytest.fixture(scope="session") | ||
@pytest.fixture() | ||
def user(): | ||
def user(load_specific_fixtures): | ||
load_specific_fixtures(["roles"]) | ||
return get_user_model().objects.create_user( | ||
username="testuser", password="testpass", email="[email protected]" | ||
) | ||
|
@@ -49,6 +49,7 @@ def test_change_password_data(): | |
"new_password": "updatedtestpass", | ||
} | ||
|
||
|
||
@pytest.fixture | ||
def test_update_password_data(): | ||
return { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters