Update tests

This commit is contained in:
Veronica Berglyd Olsen
2025-04-29 22:49:22 +02:00
parent bd4a658bd9
commit 67d0b486e9
22 changed files with 263 additions and 143 deletions
+1 -1
View File
@@ -517,7 +517,7 @@ class NWProject:
def updateCounts(self) -> None:
"""Update the total word and character count values."""
wNovel, wNotes, cNovel, cNotes = self._tree.sumWords()
wNovel, wNotes, cNovel, cNotes = self._tree.sumCounts()
self._data.setCurrCounts(wNovel=wNovel, wNotes=wNotes, cNovel=cNovel, cNotes=cNotes)
return
+1 -1
View File
@@ -410,7 +410,7 @@ class NWTree:
return True
def sumWords(self) -> tuple[int, int, int, int]:
def sumCounts(self) -> tuple[int, int, int, int]:
"""Loop over all entries and add up the word and char counts."""
novelWords = 0
notesWords = 0