Skip to content

Commit

Permalink
Fix export smoke test, new heading added.
Browse files Browse the repository at this point in the history
  • Loading branch information
jzohrab committed Aug 24, 2024
1 parent 374baa3 commit 470f0e4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/unit/cli/test_language_term_export.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,13 @@ def test_smoke_test(app_context, tmp_path, english):
text = ofhandle.read()
print(text)
lines = text.split("\n")
head = lines[0]
assert (
lines[0] == "term,count,familycount,books,definition,status,children,tags"
head == "term,count,familycount,books,definition,status,parents,children,tags"
), "headings"
firstline = lines[1]
assert firstline.startswith("the,"), "the is most common"
assert firstline.endswith('article,1,-,"a, b"'), "ending data"
assert firstline.endswith('article,1,-,-,"a, b"'), "ending data"


def test_single_book_export(app_context, empty_db, tmp_path, english):
Expand Down

0 comments on commit 470f0e4

Please sign in to comment.