From a276f77c127b6cb13c472351beb0dbe87492f5f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herv=C3=A9=20M=C3=A9nager?= <herve.menager@pasteur.fr> Date: Mon, 27 Apr 2020 22:18:31 +0200 Subject: [PATCH] fix tests to assume compound with no action is not validated FIX #216 --- ippisite/ippidb/tests/tests.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ippisite/ippidb/tests/tests.py b/ippisite/ippidb/tests/tests.py index 83715ed5..f52e623c 100644 --- a/ippisite/ippidb/tests/tests.py +++ b/ippisite/ippidb/tests/tests.py @@ -438,7 +438,9 @@ class QueryCompoundViewsAccessTestCase(TestCase): self.assertEqual(self.c1.is_validated(), False) self.assertEqual(self.c2.is_validated(), True) for i in range(1, 21): - self.assertEqual(Compound.objects.get(id=2 + i).is_validated(), True) + # these compounds are considered not validated because + # are not linked to a CompoundAction + self.assertEqual(Compound.objects.get(id=2 + i).is_validated(), False) def test_lelleplot_filter(self): """ -- GitLab