diff options
Diffstat (limited to '')
-rw-r--r-- | pyblackbird_cc/conftest.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/pyblackbird_cc/conftest.py b/pyblackbird_cc/conftest.py new file mode 100644 index 0000000..966a3e5 --- /dev/null +++ b/pyblackbird_cc/conftest.py @@ -0,0 +1,14 @@ +import pytest + +from pyblackbird_cc.users.models import User +from pyblackbird_cc.users.tests.factories import UserFactory + + +@pytest.fixture(autouse=True) +def _media_storage(settings, tmpdir) -> None: + settings.MEDIA_ROOT = tmpdir.strpath + + +@pytest.fixture() +def user(db) -> User: + return UserFactory() |