From e2d089193408a87b74b9e037e5e0f537bbe4f184 Mon Sep 17 00:00:00 2001 From: Colin Goutte Date: Mon, 27 Sep 2021 16:44:39 +0200 Subject: [PATCH] Add notification creation check --- tests/test_papi.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/test_papi.py b/tests/test_papi.py index bce901c..9a3ad9a 100644 --- a/tests/test_papi.py +++ b/tests/test_papi.py @@ -141,6 +141,10 @@ def test_onchange_notification(): jresp = response.json() assert not jresp["notify"] + notifs = client.get(f"notifications/{id_sonde}/") + assert notifs.ok + assert len(notifs) == 1 + class CodeCoverageTestCase(TestCase):