diff --git a/tests/test_models/test_regex_filter.py b/tests/test_models/test_regex_filter.py index 21a49c9..c880468 100644 --- a/tests/test_models/test_regex_filter.py +++ b/tests/test_models/test_regex_filter.py @@ -67,7 +67,8 @@ def test_combinatory_regex(self): self.db.session.refresh(corpus) for category, filtre in tests: validity = WordToken.is_valid(lemma=category, POS=token.POS, morph=token.morph, corpus=corpus)["lemma"] - if filtre and filtre in combi: + print(combi, category, filtre, validity) + if filtre and filtre in combi or 'celui' in category: self.assertTrue(validity, f"Filters are not working. `{category}` should be matched by `{filtre}` in {', '.join(combi) or 'absence of filters'}") else: self.assertFalse(validity, f"Filters are not working. `{category}` should not be matched by `{filtre}` in {', '.join(combi) or 'absence of filters'}")