Update tests

This commit is contained in:
Veronica Berglyd Olsen
2023-08-25 18:37:01 +02:00
parent fa7e9b7f33
commit 10c7934ae2
28 changed files with 99 additions and 50 deletions
+4 -2
View File
@@ -23,11 +23,14 @@ from __future__ import annotations
import shutil
from pathlib import Path
from datetime import datetime
from PyQt5.QtWidgets import qApp
XML_IGNORE = ("<novelWriterXML", "<project")
ODT_IGNORE = ("<meta:generator", "<meta:creation-date", "<dc:date", "<meta:editing")
NWD_IGNORE = ("%%~date:",)
MOCK_TIME = datetime(2019, 5, 10, 18, 52, 0).timestamp()
class C:
@@ -62,8 +65,7 @@ def cmpFiles(
ignoreLines: list | None = None,
ignoreStart: tuple | None = None
) -> bool:
"""Compare two files, but optionally ignore lines given by a list.
"""
"""Compare two files, with optional line ignore."""
if ignoreLines is None:
ignoreLines = []