Skip to content

Commit 79400c3

Browse files
committed
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.
1 parent ed53c00 commit 79400c3

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

tests/probes/test_probes_topic.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88
import garak.probes.base
99
import garak.probes.topic
1010

11+
# trigger wn config overrides
12+
garak.probes.topic.WordnetBlockedWords()
13+
1114
TEST_LEXICON = "oewn:2023"
1215
TEST_TERM = "abortion"
1316
TEST_SYNSET_ID = "oewn-00231191-n"

0 commit comments

Comments
 (0)