mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-01-18 14:02:15 +00:00
12 lines
415 B
Python
12 lines
415 B
Python
import pytest
|
|
from training import models
|
|
from RIGS.models import Profile
|
|
|
|
@pytest.fixture
|
|
def trainee(db):
|
|
trainee = Profile.objects.create(username="trainee", first_name="Train", last_name="EE",
|
|
initials="TRN",
|
|
email="trainee@example.com", is_active=True, is_approved=True)
|
|
yield trainee
|
|
trainee.delete()
|