import pytest


@pytest.fixture
def user(django_user_model):
    return django_user_model.objects.create_user(username='TestUser', password='<PASSWORD>')


@pytest.fixture
def user_client(user, client):
    client.force_login(user)
    return client

import pytest


@pytest.fixture
def user(django_user_model):
    return django_user_model.objects.create_user(username='TestUser', password='<PASSWORD>')


@pytest.fixture
def user_client(user, client):
    client.force_login(user)
    return client
