Complete test coverage of doc build module

This commit is contained in:
Veronica Berglyd Olsen
2023-06-24 19:14:22 +02:00
parent 151e4b2770
commit f502411079
10 changed files with 919 additions and 47 deletions
+6 -1
View File
@@ -18,6 +18,7 @@ General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
"""
from __future__ import annotations
import shutil
@@ -56,7 +57,11 @@ class C:
# END Class C
def cmpFiles(fileOne, fileTwo, ignoreLines=None, ignoreStart=None):
def cmpFiles(
fileOne: str | Path, fileTwo: str | Path,
ignoreLines: list | None = None,
ignoreStart: tuple | None = None
) -> bool:
"""Compare two files, but optionally ignore lines given by a list.
"""
if ignoreLines is None: