Skip to content

Commit

Permalink
Add empty vw_multi training doc to ensure 100% test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
osma committed Feb 5, 2019
1 parent c4d5ea4 commit 99201e5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_backend_vw_multi.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ def vw_corpus(tmpdir):
"""return a small document corpus for testing VW training"""
tmpfile = tmpdir.join('document.tsv')
tmpfile.write("nonexistent\thttp://example.com/nonexistent\n" +
"arkeologia\thttp://www.yso.fi/onto/yso/p1265")
"arkeologia\thttp://www.yso.fi/onto/yso/p1265\n" +
"...\thttp://example.com/none")
return annif.corpus.DocumentFile(str(tmpfile))


Expand Down

0 comments on commit 99201e5

Please sign in to comment.