From 79400c37f750efed284c1024552da080b7f754ee Mon Sep 17 00:00:00 2001 From: 06kellyjac Date: Thu, 31 Jul 2025 20:39:04 +0100 Subject: [PATCH] Trigger `wn` config overrides from `WordnetBlockedWords` before using `wn` in tests Running `wn.Download()` before changing the config location just ends up causing problems and dowloading it again for the new location. --- tests/probes/test_probes_topic.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/probes/test_probes_topic.py b/tests/probes/test_probes_topic.py index 1221fff2a..086f0e08e 100644 --- a/tests/probes/test_probes_topic.py +++ b/tests/probes/test_probes_topic.py @@ -8,6 +8,9 @@ import garak.probes.base import garak.probes.topic +# trigger wn config overrides +garak.probes.topic.WordnetBlockedWords() + TEST_LEXICON = "oewn:2023" TEST_TERM = "abortion" TEST_SYNSET_ID = "oewn-00231191-n"