Skip to content

Commit

Permalink
fix: classmethods
Browse files Browse the repository at this point in the history
  • Loading branch information
severinsimmler committed Dec 23, 2018
1 parent a824e48 commit 0f38a53
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,14 +289,14 @@ def test_orlov_z(self, corpus):

def test_svmlight(self, corpus):
output = pathlib.Path("corpus.svmlight")
corpus.svmlight(corpus.dtm, output)
cophi.corpus.svmlight(corpus.dtm, output)
assert output.exists()
with output.open("r", encoding="utf-8") as file:
assert file.read() == "document document a:3 b:2 c:3 d:1 e:1 f:1\n"

def test_plaintext(self, corpus):
output = pathlib.Path("corpus.txt")
corpus.plaintext(corpus.dtm, output)
cophi.corpus.plaintext(corpus.dtm, output)
assert output.exists()
with output.open("r", encoding="utf-8") as file:
assert file.read() == "document document a a a b b c c c d e f\n"

0 comments on commit 0f38a53

Please sign in to comment.