mirror of https://github.com/explosion/spaCy.git
two tests because of different exit type
This commit is contained in:
parent
73baaf330a
commit
9a8255ffd5
|
@ -374,13 +374,22 @@ def test_parse_config_overrides(args, expected):
|
||||||
|
|
||||||
@pytest.mark.parametrize(
|
@pytest.mark.parametrize(
|
||||||
"args",
|
"args",
|
||||||
[["--foo"], ["--x.foo", "bar", "--baz"], ["--x.foo", "bar", "baz"], ["x.foo"]],
|
[["--foo"], ["--x.foo", "bar", "--baz"]],
|
||||||
)
|
)
|
||||||
def test_parse_config_overrides_invalid(args):
|
def test_parse_config_overrides_invalid(args):
|
||||||
with pytest.raises(NoSuchOption):
|
with pytest.raises(NoSuchOption):
|
||||||
parse_config_overrides(args)
|
parse_config_overrides(args)
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.mark.parametrize(
|
||||||
|
"args",
|
||||||
|
[["--x.foo", "bar", "baz"], ["x.foo"]],
|
||||||
|
)
|
||||||
|
def test_parse_config_overrides_invalid_2(args):
|
||||||
|
with pytest.raises(SystemExit):
|
||||||
|
parse_config_overrides(args)
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.parametrize("lang", ["en", "nl"])
|
@pytest.mark.parametrize("lang", ["en", "nl"])
|
||||||
@pytest.mark.parametrize(
|
@pytest.mark.parametrize(
|
||||||
"pipeline", [["tagger", "parser", "ner"], [], ["ner", "textcat", "sentencizer"]]
|
"pipeline", [["tagger", "parser", "ner"], [], ["ner", "textcat", "sentencizer"]]
|
||||||
|
|
Loading…
Reference in New Issue