Testing configuration cleanup

This commit is contained in:
Sorin Sbarnea
2020-04-24 09:59:03 +01:00
parent e3d14e0e37
commit 9881220e73
15 changed files with 147 additions and 69 deletions

View File

@ -25,7 +25,7 @@ import sh
from molecule import util
from molecule.command.init import base
from molecule.model import schema_v2
from molecule.model import schema_v3
class CommandBase(base.Base):
@ -47,7 +47,6 @@ def _command_args():
return {
"dependency_name": "galaxy",
"driver_name": "hetznercloud",
"lint_name": "yamllint",
"provisioner_name": "ansible",
"scenario_name": "default",
"role_name": "test-role",
@ -76,7 +75,7 @@ def test_drivers(
data = util.safe_load_file(_molecule_file)
assert {} == schema_v2.validate(data)
assert {} == schema_v3.validate(data)
cmd = sh.yamllint.bake("-s", _molecule_file)
pytest.helpers.run_command(cmd)