Assistant: codex Assistant-Model: gpt-6-astra Assistant-Session: 01a07ff8-19d0-7820-b4d0-1353833cb7fc
17 lines
457 B
Python
17 lines
457 B
Python
import pytest
|
|
|
|
|
|
@pytest.fixture
|
|
def mitarbeiter(db):
|
|
from vergabe_teilnahme.apps.accounts.models import Mitarbeiter
|
|
|
|
return Mitarbeiter.objects.create_user(
|
|
username='testuser', password='testpass', first_name='Test', last_name='User'
|
|
)
|
|
|
|
|
|
@pytest.fixture
|
|
def admitted_client(client, mitarbeiter):
|
|
"""Domain workflow tests act as a member; the standard client stays anonymous."""
|
|
client.force_login(mitarbeiter)
|
|
return client
|