Skip to content

Commit

Permalink
Remove test for nonexistent use case
Browse files Browse the repository at this point in the history
  • Loading branch information
Rikuoja committed Mar 21, 2017
1 parent 8d28b76 commit eafcb78
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions events/tests/test_event_get.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,24 +136,6 @@ def test_get_event_list_verify_division_filter(api_client, event, event2, event3
assert event2.id in ids


@pytest.mark.django_db
def test_get_event_list_check_super_event_without_subevents_excluded(api_client, event, event2):
event.super_event_type = Event.SuperEventType.RECURRING
event.save()
response = get_list(api_client)

# the first event is a recurring super without subevents, expect it to be excluded
assert len(response.data['data']) == 1
assert response.data['data'][0]['id'] == event2.id

event2.super_event = event
event2.save()

# the first event has a sub event now, expect it to be included
response = get_list(api_client)
assert len(response.data['data']) == 2


@pytest.mark.django_db
def test_get_event_list_recurring_filters(api_client, event, event2):
event.super_event_type = Event.SuperEventType.RECURRING
Expand Down

0 comments on commit eafcb78

Please sign in to comment.