Skip to content

Commit

Permalink
Tests: implement link checking of results
Browse files Browse the repository at this point in the history
  • Loading branch information
rrthomas committed Nov 23, 2024
1 parent 3bc82ce commit 4452836
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion tests/test_nancy.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def test_part_tree() -> None:
def test_two_trees() -> None:
with chdir(tests_dir):
passing_test(["mergetrees-src", "webpage-src"], "mergetrees-expected")
check_links("mergetrees-expected", "index.html")
check_links("mergetrees-expected", "index.html")


def test_nested_macro_invocations() -> None:
Expand Down
8 changes: 2 additions & 6 deletions tests/testutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import io
import os
import sys
import subprocess
import re
import filecmp
import difflib
Expand Down Expand Up @@ -141,9 +142,4 @@ def failing_cli_test(


def check_links(root: str, start: str) -> None:
pass
# FIXME
# results = check({"path": start, "serverRoot": root})
# if not results.passed:
# warn(results)
# assert results.passed == "Broken links in output"
subprocess.check_call(["linkchecker", os.path.join(root, start)])
1 change: 1 addition & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ xfail_strict = True
[testenv]
deps =
coverage
LinkChecker
mypy
pylint
types-setuptools
Expand Down

0 comments on commit 4452836

Please sign in to comment.