From b9ccd9418142276e5d6b4836b665c8900696b57f Mon Sep 17 00:00:00 2001 From: "Veronica K. B. Olsen" <1619840+vkbo@users.noreply.github.com> Date: Sun, 24 May 2020 22:12:40 +0200 Subject: [PATCH] Fix tests --- tests/test_project.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test_project.py b/tests/test_project.py index a49cba7d..369c866d 100644 --- a/tests/test_project.py +++ b/tests/test_project.py @@ -156,7 +156,7 @@ def testIndexCheckThese(nwTempProj): "@pov: Jane" )) assert str(theIndex.tagIndex) == "{'Jane': [2, '2858dcd1057d3', 'CHARACTER']}" - assert theIndex.novelIndex[nHandle]["T1"]["title"] == "Hello World!" + assert theIndex.novelIndex[nHandle]["T000001"]["title"] == "Hello World!" assert str(theIndex.checkThese(["@tag", "Jane"], cItem)) == "[True, True]" assert str(theIndex.checkThese(["@tag", "John"], cItem)) == "[True, True]" @@ -196,10 +196,10 @@ def testIndexMeta(nwTempProj): "Well, not really.\n" )) assert str(theIndex.tagIndex) == "{'Jane': [2, '2858dcd1057d3', 'CHARACTER']}" - assert theIndex.novelIndex[nHandle]["T1"]["title"] == "Hello World!" + assert theIndex.novelIndex[nHandle]["T000001"]["title"] == "Hello World!" # The novel structure should contain the pointer to the novel file header - assert str(theIndex.getNovelStructure()) == "['41cfc0d1f2d12:T1']" + assert str(theIndex.getNovelStructure()) == "['41cfc0d1f2d12:T000001']" # The novel file should have the correct counts cC, wC, pC = theIndex.getCounts(nHandle)