Skip to content

Commit

Permalink
fixture for changing media url
Browse files Browse the repository at this point in the history
  • Loading branch information
itisnotyourenv committed Jul 15, 2023
1 parent 69505fb commit bbfa687
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ def media_storage(settings, tmpdir):
settings.MEDIA_ROOT = tmpdir.strpath


@pytest.fixture(autouse=True)
def media_url(settings):
settings.MEDIA_URL = 'http://testserver'


@pytest.fixture
def user(db) -> User:
return UserFactory()

0 comments on commit bbfa687

Please sign in to comment.