-
Notifications
You must be signed in to change notification settings - Fork 1
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
55 additions
and
39 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 |
---|---|---|
@@ -1,8 +1,6 @@ | ||
import pytest | ||
|
||
from django.contrib.auth.models import User | ||
|
||
|
||
from api import models as api_models | ||
from gmn import models as gmn_models | ||
from gmw import models as gmw_models | ||
|
@@ -18,15 +16,15 @@ def organisation(): | |
) | ||
return organisation | ||
|
||
|
||
@pytest.fixture | ||
def user(): | ||
user = User.objects.create_user( | ||
username='test_user', | ||
email='[email protected]', | ||
password='test_password' | ||
username="test_user", email="[email protected]", password="test_password" | ||
) | ||
return user | ||
|
||
|
||
@pytest.fixture | ||
def userprofile(user, organisation): | ||
userprofile = api_models.UserProfile.objects.create( | ||
|
@@ -35,6 +33,7 @@ def userprofile(user, organisation): | |
) | ||
return userprofile | ||
|
||
|
||
@pytest.fixture | ||
def gmn(organisation): | ||
return gmn_models.GMN( | ||
|
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