Remove duplicate test

This commit is contained in:
Raphael Michel
2019-04-05 15:32:25 +02:00
parent f2437c7ff7
commit 282c6108bf

View File

@@ -110,20 +110,6 @@ def test_ignore_get(token_client, organizer, event):
assert d1 != json.loads(resp.content)
@pytest.mark.django_db
def test_ignore_get(token_client, organizer, event):
resp = token_client.get('/api/v1/organizers/{}/events/'.format(organizer.slug),
HTTP_X_IDEMPOTENCY_KEY='foo')
assert resp.status_code == 200
d1 = resp.data
event.name = "foo"
event.save()
resp = token_client.get('/api/v1/organizers/{}/events/'.format(organizer.slug),
HTTP_X_IDEMPOTENCY_KEY='foo')
assert resp.status_code == 200
assert d1 != json.loads(resp.content)
@pytest.mark.django_db
def test_ignore_outside_api(token_client, organizer):
resp = token_client.post('/control/login'.format(organizer.slug),