summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorThomas Feldmann <mail@tfeldmann.de>2022-01-30 16:45:45 +0100
committerThomas Feldmann <mail@tfeldmann.de>2022-01-30 16:45:45 +0100
commit3d7eb8bd7ada24f5c202a12b67500fa1e238df31 (patch)
tree53f3286f5b1a883ad0e408a4baa92baf6783e727 /tests
parent983b2a8887558624bb4d714bba75690d142cf136 (diff)
doc tests
Diffstat (limited to 'tests')
-rw-r--r--tests/docs/test_docs.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/docs/test_docs.py b/tests/docs/test_docs.py
index 146ffbf..8ef1599 100644
--- a/tests/docs/test_docs.py
+++ b/tests/docs/test_docs.py
@@ -21,11 +21,14 @@ def test_examples_are_valid():
for f in DOCS.values():
text = docdir.readtext(f)
for match in RE_CONFIG.findall(text):
+ err = ""
try:
config = load_from_string(match)
CONFIG_SCHEMA.validate(config)
except SchemaError as e:
- raise ValueError(e.autos[-1])
+ print(f"{f}:\n({match})")
+ err = e.autos[-1]
+ assert not err
def test_all_filters_documented():