Merge branch 'fix/revert-disable-enable-behavior' of github.com:rmitsch/spaCy into fix/revert-disable-enable-behavior

This commit is contained in:
Raphael Mitsch 2022-11-08 12:17:52 +01:00
commit 4291c81926

View File

@ -615,7 +615,7 @@ def test_enable_disable_conflict_with_config():
with make_tempdir() as tmp_dir:
nlp.to_disk(tmp_dir)
# Expected to succeed, as config and arguments conflict.
# Expected to succeed, as config and arguments do not conflict.
assert spacy.load(
tmp_dir, enable=["tagger"], config={"nlp": {"disabled": ["senter"]}}
).disabled == ["senter", "sentencizer"]