Skip to content

Commit

Permalink
Fix get_event coverage issues
Browse files Browse the repository at this point in the history
  • Loading branch information
amakarudze committed Nov 24, 2023
1 parent 9f9efa1 commit 19cf1d0
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions tests/core/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,3 +134,20 @@ def old_event(organizer_peter):
)
event.team.add(organizer_peter)
return event


@pytest.fixture
def old_event_no_date(organizer_peter):
event = Event.objects.create(
email="bonn@djangogirls.org",
city="Bonn",
name="Django Girls Bonn",
country="the Neverlands",
is_on_homepage=True,
main_organizer=organizer_peter,
date="",
page_url="bonn",
is_page_live=False,
)
event.team.add(organizer_peter)
return event

0 comments on commit 19cf1d0

Please sign in to comment.