mirror of
https://github.com/explosion/spaCy.git
synced 2025-08-04 04:10:20 +03:00
tests: check evaluate
output against benchmark accuracy
This commit is contained in:
parent
571ffbd717
commit
10959bb4b7
|
@ -31,3 +31,12 @@ def test_convert_auto_conflict():
|
||||||
assert "All input files must be same type" in result.stdout
|
assert "All input files must be same type" in result.stdout
|
||||||
out_files = os.listdir(d_out)
|
out_files = os.listdir(d_out)
|
||||||
assert len(out_files) == 0
|
assert len(out_files) == 0
|
||||||
|
|
||||||
|
|
||||||
|
def test_benchmark_accuracy_alias():
|
||||||
|
# Verify that the `evaluate` alias works correctly.
|
||||||
|
result_benchmark = CliRunner().invoke(app, ["benchmark", "accuracy", "--help"])
|
||||||
|
result_evaluate = CliRunner().invoke(app, ["evaluate", "--help"])
|
||||||
|
assert result_benchmark.stdout == result_evaluate.stdout.replace(
|
||||||
|
"spacy evaluate", "spacy benchmark accuracy"
|
||||||
|
)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user