# Path: tests/factories.py
# class SalesRepFactory(factory.django.DjangoModelFactory):
#     class Meta:
#         model = 'reps.SalesRep'
#         django_get_or_create = ('username',)
# 
#     username = 'user'
#     password = 'test'
#     email = 'jacob@example.com'
#     is_staff = True
#     is_superuser = False
# 
#     @classmethod
#     def _prepare(cls, create, **kwargs):
#         password = kwargs.pop('password', None)
#         user = super()._prepare(create, **kwargs)
#         if password:
#             user.set_password(password)
#             if create:
#                 user.save()
#         return user


import pytest
from tests.factories import SalesRepFactory


@pytest.fixture
def user(db):
    return SalesRepFactory()



# Path: tests/factories.py
# class SalesRepFactory(factory.django.DjangoModelFactory):
#     class Meta:
#         model = 'reps.SalesRep'
#         django_get_or_create = ('username',)
# 
#     username = 'user'
#     password = 'test'
#     email = 'jacob@example.com'
#     is_staff = True
#     is_superuser = False
# 
#     @classmethod
#     def _prepare(cls, create, **kwargs):
#         password = kwargs.pop('password', None)
#         user = super()._prepare(create, **kwargs)
#         if password:
#             user.set_password(password)
#             if create:
#                 user.save()
#         return user


# Path: advanced_filters/tests/conftest.py
import pytest
from tests.factories import SalesRepFactory



@pytest.fixture
def user(db):
    return SalesRepFactory()



@pytest.fixture()