spaCy/spacy/tests/serialize
Raphael Mitsch aea16719be
Simplify and clarify enable/disable behavior of spacy.load() (#11459)
* Change enable/disable behavior so that arguments take precedence over config options. Extend error message on conflict. Add warning message in case of overwriting config option with arguments.

* Fix tests in test_serialize_pipeline.py to reflect changes to handling of enable/disable.

* Fix type issue.

* Move comment.

* Move comment.

* Issue UserWarning instead of printing wasabi message. Adjust test.

* Added pytest.warns(UserWarning) for expected warning to fix tests.

* Update warning message.

* Move type handling out of fetch_pipes_status().

* Add global variable for default value. Use id() to determine whether used values are default value.

* Fix default value for disable.

* Rename DEFAULT_PIPE_STATUS to _DEFAULT_EMPTY_PIPES.
2022-09-27 14:22:36 +02:00
..
__init__.py Revert #4334 2019-09-29 17:32:12 +02:00
test_resource_warning.py Tidy up tests 2020-10-15 10:20:21 +02:00
test_serialize_config.py Tagger: use unnormalized probabilities for inference (#10197) 2022-03-15 14:15:31 +01:00
test_serialize_doc.py Migrate regression tests into the main test suite (#9655) 2021-12-04 20:34:48 +01:00
test_serialize_docbin.py Migrate regression tests into the main test suite (#9655) 2021-12-04 20:34:48 +01:00
test_serialize_extension_attrs.py Merge branch 'master' into develop 2020-02-18 14:47:23 +01:00
test_serialize_kb.py Update flake8 version in reqs and CI 2021-06-28 11:29:36 +02:00
test_serialize_language.py Tagger: use unnormalized probabilities for inference (#10197) 2022-03-15 14:15:31 +01:00
test_serialize_pipeline.py Simplify and clarify enable/disable behavior of spacy.load() (#11459) 2022-09-27 14:22:36 +02:00
test_serialize_span_groups.py Fix: De/Serialize `SpanGroups` including the SpanGroup keys (#10707) 2022-06-02 15:56:27 +02:00
test_serialize_tokenizer.py Add tokenizer option to allow Matcher handling for all rules (#10452) 2022-03-24 13:21:32 +01:00
test_serialize_vocab_strings.py Migrate regression tests into the main test suite (#9655) 2021-12-04 20:34:48 +01:00