From 470f0e4307d597c54f65f51553d03c909c51ffe8 Mon Sep 17 00:00:00 2001 From: Jeff Zohrab Date: Sat, 24 Aug 2024 14:53:04 -0700 Subject: [PATCH] Fix export smoke test, new heading added. --- tests/unit/cli/test_language_term_export.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/unit/cli/test_language_term_export.py b/tests/unit/cli/test_language_term_export.py index b04d6781f..7c4431b0a 100644 --- a/tests/unit/cli/test_language_term_export.py +++ b/tests/unit/cli/test_language_term_export.py @@ -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):