File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed
Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change 33import tempfile
44from pathlib import Path
55
6+ from preciceconfigcheck .cli import runCheck
7+
68
79def list_examples ():
810 examples = Path (__file__ ).parent .parent / "examples"
@@ -23,3 +25,11 @@ def test_application_with_example(example: Path):
2325 output = [p .name for p in Path (temp_dir ).iterdir ()]
2426 print (f"Output { output } " )
2527 assert output , "Nothing generated"
28+
29+ config = Path (temp_dir ) / "precice-config.xml"
30+ assert config .exists (), "No config generated"
31+ ret = runCheck (config , True )
32+ if ret != 0 :
33+ print ("Failed config:" )
34+ print (config .read_text ())
35+ assert False , "The config failed to validate"
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ description = run the tests with pytest
1010package = wheel
1111wheel_build_env = .pkg
1212deps =
13+ precice-config-check
1314 pytest>=6
1415commands =
1516 pytest {tty:--color =yes} {posargs}
You can’t perform that action at this time.
0 commit comments