Added test for wrong version in config file.

This commit is contained in:
Salvador E. Tropea 2020-05-26 12:53:24 -03:00
parent 92df488ddb
commit 64de376c2b
2 changed files with 14 additions and 0 deletions

View File

@ -24,3 +24,10 @@ def test_no_version():
ctx.run(EXIT_BAD_CONFIG)
assert ctx.search_err('YAML config needs kiplot.version')
ctx.clean_up()
def test_wrong_version():
ctx = context.TestContext('ErrorWrongVersion', '3Rs', 'error_wrong_version', None)
ctx.run(EXIT_BAD_CONFIG)
assert ctx.search_err('Unknown KiPlot config version: 20')
ctx.clean_up()

View File

@ -0,0 +1,7 @@
kiplot:
version: 20
preflight:
run_drc: true