import pytest


@pytest.fixture
def user():
    return {
        "first_name": "Mainak",
        "last_name": "Sengupta",
        "role": "simple mortal",
        "email": "<EMAIL>",
        "is_active": False,
        "is_admin": False,
        "created_at": "datetime",
        "last_login": "datetime",
        "password": "<PASSWORD>",
        "password_reverification": "<PASSWORD>",
    }


@pytest.fixture
def no_pass_user():
    return {
        "first_name": "Mainak",
        "last_name": "Sengupta",
        "role": "simple mortal",
        "email": "<EMAIL>",
        "is_active": False,
        "is_admin": False,
        "created_at": "datetime",
        "last_login": "datetime",
        "password": "",
        "password_reverification": "<PASSWORD>",
    }


@pytest.fixture
def unmatching_pass_user():
    return {
        "first_name": "Mainak",
        "last_name": "Sengupta",
        "role": "simple mortal",
        "email": "<EMAIL>",
        "is_active": False,
        "is_admin": False,
        "created_at": "datetime",
        "last_login": "datetime",
        "password": "<PASSWORD>",
        "password_reverification": "<PASSWORD>",
    }


@pytest.fixture
def no_fname_user():
    return {
        "first_name": "",
        "last_name": "Sengupta",
        "role": "simple mortal",
        "email": "<EMAIL>",
        "is_active": False,
        "is_admin": False,
        "created_at": "datetime",
        "last_login": "datetime",
        "password": "<PASSWORD>",
        "password_reverification": "<PASSWORD>",
    }


@pytest.fixture
def invalid_fname_user():
    return {
        "first_name": "Mainak  ",
        "last_name": "Sengupta",
        "role": "simple mortal",
        "email": "<EMAIL>",
        "is_active": False,
        "is_admin": False,
        "created_at": "datetime",
        "last_login": "datetime",
        "password": "<PASSWORD>",
        "password_reverification": "<PASSWORD>",
    }


@pytest.fixture
def unreg_role_user():
    return {
        "first_name": "Mainak  ",
        "last_name": "Sengupta",
        "role": "mediocre mortal",
        "email": "<EMAIL>",
        "is_active": False,
        "is_admin": False,
        "created_at": "datetime",
        "last_login": "datetime",
        "password": "<PASSWORD>",
        "password_reverification": "<PASSWORD>",
    }


@pytest.fixture
def empty_role_user():
    return {
        "first_name": "Mainak  ",
        "last_name": "Sengupta",
        "role": "",
        "email": "<EMAIL>",
        "is_active": False,
        "is_admin": False,
        "created_at": "datetime",
        "last_login": "datetime",
        "password": "<PASSWORD>",
        "password_reverification": "<PASSWORD>",
    }


@pytest.fixture
def update_def_user():
    return {
        "first_name": "Manak",
    }

import pytest


@pytest.fixture
def user():
    return {
        "first_name": "Mainak",
        "last_name": "Sengupta",
        "role": "simple mortal",
        "email": "<EMAIL>",
        "is_active": False,
        "is_admin": False,
        "created_at": "datetime",
        "last_login": "datetime",
        "password": "<PASSWORD>",
        "password_reverification": "<PASSWORD>",
    }


@pytest.fixture
def no_pass_user():
    return {
        "first_name": "Mainak",
        "last_name": "Sengupta",
        "role": "simple mortal",
        "email": "<EMAIL>",
        "is_active": False,
        "is_admin": False,
        "created_at": "datetime",
        "last_login": "datetime",
        "password": "",
        "password_reverification": "<PASSWORD>",
    }


@pytest.fixture
def unmatching_pass_user():
    return {
        "first_name": "Mainak",
        "last_name": "Sengupta",
        "role": "simple mortal",
        "email": "<EMAIL>",
        "is_active": False,
        "is_admin": False,
        "created_at": "datetime",
        "last_login": "datetime",
        "password": "<PASSWORD>",
        "password_reverification": "<PASSWORD>",
    }


@pytest.fixture
def no_fname_user():
    return {
        "first_name": "",
        "last_name": "Sengupta",
        "role": "simple mortal",
        "email": "<EMAIL>",
        "is_active": False,
        "is_admin": False,
        "created_at": "datetime",
        "last_login": "datetime",
        "password": "<PASSWORD>",
        "password_reverification": "<PASSWORD>",
    }


@pytest.fixture
def invalid_fname_user():
    return {
        "first_name": "Mainak  ",
        "last_name": "Sengupta",
        "role": "simple mortal",
        "email": "<EMAIL>",
        "is_active": False,
        "is_admin": False,
        "created_at": "datetime",
        "last_login": "datetime",
        "password": "<PASSWORD>",
        "password_reverification": "<PASSWORD>",
    }


@pytest.fixture
def unreg_role_user():
    return {
        "first_name": "Mainak  ",
        "last_name": "Sengupta",
        "role": "mediocre mortal",
        "email": "<EMAIL>",
        "is_active": False,
        "is_admin": False,
        "created_at": "datetime",
        "last_login": "datetime",
        "password": "<PASSWORD>",
        "password_reverification": "<PASSWORD>",
    }


@pytest.fixture
def empty_role_user():
    return {
        "first_name": "Mainak  ",
        "last_name": "Sengupta",
        "role": "",
        "email": "<EMAIL>",
        "is_active": False,
        "is_admin": False,
        "created_at": "datetime",
        "last_login": "datetime",
        "password": "<PASSWORD>",
        "password_reverification": "<PASSWORD>",
    }


@pytest.fixture
def update_def_user():
    return {
        "first_name": "Manak",
    }
