Skip to content

Commit

Permalink
fix: workaround for broken faker fixture : joke2k/faker#2137
Browse files Browse the repository at this point in the history
  • Loading branch information
danjac committed Nov 14, 2024
1 parent 8abd59a commit b1b19a6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions radiofeed/tests/fixtures.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,19 @@
from django.contrib.sites.models import Site
from django.core.cache import cache
from django.http import HttpRequest, HttpResponse
from faker import Faker


@pytest.fixture
def site():
return Site.objects.get_current()


@pytest.fixture
def faker():
return Faker()


@pytest.fixture(autouse=True)
def _settings_overrides(settings: Settings) -> None:
"""Default settings for all tests."""
Expand Down

0 comments on commit b1b19a6

Please sign in to comment.