-
Notifications
You must be signed in to change notification settings - Fork 2
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
17 additions
and
14 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,10 +3,9 @@ | |
|
||
import pytest | ||
from django.contrib.auth import get_user_model | ||
from model_bakery import baker | ||
from playwright.sync_api import expect | ||
|
||
from core.factories import StructureFactory | ||
from core.factories import StructureFactory, UserFactory | ||
from core.models import Agent, Contact | ||
|
||
User = get_user_model() | ||
|
@@ -27,7 +26,7 @@ def set_django_allow_async_unsafe(): | |
|
||
@pytest.fixture(autouse=True) | ||
def mocked_authentification_user(db): | ||
user = baker.make(get_user_model(), email="[email protected]") | ||
user = UserFactory(email="[email protected]") | ||
user.is_active = True | ||
user.save() | ||
structure = StructureFactory(niveau2="Structure Test", libelle="Structure Test") | ||
|
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