Add test coverage

This commit is contained in:
Veronica Berglyd Olsen committed 2024-10-16 17:33:32 +02:00
1 parent 40817e73b4
commit 225befe57e
2 files changed
+18

No files matched your search

+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")