You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
449 B
22 lines
449 B
import pytest
|
|
|
|
from factories.users import UserFactory
|
|
|
|
|
|
@pytest.fixture
|
|
def user_admin():
|
|
"""
|
|
Create user as administration with data:
|
|
email = 'admin@example.com'
|
|
password = 'test'
|
|
is_active = True
|
|
is_superuser = True
|
|
"""
|
|
admin = UserFactory(
|
|
last_name='Иванов',
|
|
first_name='Иван',
|
|
email='admin@example.com',
|
|
is_active=True,
|
|
is_superuser=True
|
|
)
|
|
return admin
|
|
|