From 5d591a229fd2074873a813d134c4f200d2830a3d Mon Sep 17 00:00:00 2001 From: Mathieu Leplatre Date: Thu, 21 Jul 2016 10:44:19 +0200 Subject: [PATCH] @Natim review --- kinto/tests/core/resource/test_events.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/kinto/tests/core/resource/test_events.py b/kinto/tests/core/resource/test_events.py index 7695b294a..4c50b73a0 100644 --- a/kinto/tests/core/resource/test_events.py +++ b/kinto/tests/core/resource/test_events.py @@ -360,6 +360,8 @@ def test_one_event_is_sent_per_resource(self): self.assertEqual(len(self.events), 2) def test_one_event_is_sent_per_parent_id(self): + # /mushrooms is a UserResource (see testapp.views), which means + # that parent_id depends on the authenticated user. body = { "defaults": { "path": '/mushrooms', @@ -373,6 +375,7 @@ def test_one_event_is_sent_per_parent_id(self): ] } self.app.post_json("/batch", body, headers=self.headers) + # Two different auth headers, thus two different parent_id: self.assertEqual(len(self.events), 2) def test_one_event_is_sent_per_action(self):