Add notification creation check

This commit is contained in:
Colin Goutte 2021-09-27 16:44:39 +02:00
parent 342f30127b
commit e2d0891934
1 changed files with 4 additions and 0 deletions

View File

@ -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):