minor bug fixes

This commit is contained in:
Alexander Karpov 2022-11-18 10:28:40 +03:00
parent 3f806b13a2
commit 598c37db5a
3 changed files with 2 additions and 14 deletions

View File

@ -1,3 +1,4 @@
DATABASE_URL=
CELERY_BROKER_URL=
USE_DOCKER=
EMAIL_HOST=

1
.gitignore vendored
View File

@ -1,4 +1,5 @@
.env
.envs
.idea
### Python template
# Byte-compiled / optimized / DLL files

View File

@ -1,14 +0,0 @@
import pytest
from akarpov.users.models import User
from akarpov.users.tests.factories import UserFactory
@pytest.fixture(autouse=True)
def media_storage(settings, tmpdir):
settings.MEDIA_ROOT = tmpdir.strpath
@pytest.fixture
def user(db) -> User:
return UserFactory()