details:   https://code.tryton.org/tryton/commit/ae2a0526e297
branch:    7.6
user:      Cédric Krier <[email protected]>
date:      Sat Aug 23 20:29:51 2025 +0200
description:
        Use sub-test when testing search domain with deactivable mixin
        (grafted from 4c8bb51f47ab3ba881bb5738f3387d656f5ed52a)
diffstat:

 trytond/trytond/tests/test_mixins.py |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (10 lines):

diff -r 66372dfc912d -r ae2a0526e297 trytond/trytond/tests/test_mixins.py
--- a/trytond/trytond/tests/test_mixins.py      Thu Oct 02 10:44:10 2025 +0200
+++ b/trytond/trytond/tests/test_mixins.py      Sat Aug 23 20:29:51 2025 +0200
@@ -148,4 +148,5 @@
                 ([('active', '=', False)], [inactive]),
                 ([('active', 'in', [True, False])], [active, inactive]),
                 ]:
-            self.assertListEqual(Deactivable.search(domain), founds)
+            with self.subTest(domain=domain):
+                self.assertListEqual(Deactivable.search(domain), founds)

Reply via email to