Skip to content
Snippets Groups Projects
Commit 202fb552 authored by André Anjos's avatar André Anjos :speech_balloon:
Browse files

[test.test_cli] Fix missing keywords

parent 2c26f0d4
No related branches found
No related tags found
1 merge request!16Use pytest instead of nose
Pipeline #45771 failed
......@@ -401,6 +401,14 @@ def _check_evaluate(caplog, runner):
assert os.path.exists(basedir)
assert len(fnmatch.filter(os.listdir(basedir), "*.png")) == 10
keywords = {
r"^Started evaluation$": 1,
r"^Maximum F1-score of.*\(chosen \*a posteriori\*\)$": 3,
r"^F1-score of.*\(chosen \*a priori\*\)$": 2,
r"^F1-score of.*\(second annotator; threshold=0.5\)$": 2,
r"^Ended evaluation$": 1,
}
messages = "\n".join([k.getMessage() for k in caplog.records])
for k, v in keywords.items():
assert _str_counter(k, messages) == v, (
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment