Add test coverage

This commit is contained in:
Veronica Berglyd Olsen
2024-10-16 17:33:32 +02:00
parent 40817e73b4
commit 225befe57e
2 changed files with 18 additions and 0 deletions
+3
View File
@@ -140,6 +140,9 @@ class NWBuildDocument:
def iterBuildDocument(self, path: Path, bFormat: nwBuildFmt) -> Iterable[tuple[int, bool]]:
"""Wrapper for builders based on format."""
self._error = None
self._cache = None
if bFormat in (nwBuildFmt.J_HTML, nwBuildFmt.J_NWD):
# Ensure that JSON output has the correct extension
path = path.with_suffix(".json")