Fix bug introduced in last commit

This commit is contained in:
Raphael Michel
2020-04-21 10:42:32 +02:00
parent b260cca412
commit ad7c745465
2 changed files with 2 additions and 1 deletions

View File

@@ -42,6 +42,7 @@ def item(event):
@pytest.mark.django_db
def test_event_dates(event):
tl = timeline_for_event(event)
print(tl)
assert one([
e for e in tl
if e.event == event and e.datetime == event.date_from and e.description == 'Your event starts'