Skip to content

Commit

Permalink
rc/molecule/test/unit/model/v2/test_dependency_section.py: Fix checks
Browse files Browse the repository at this point in the history
With the new schema file, the schema check doesn't return the same
error strings, so update them.

Signed-off-by: Arnaud Patard <apatard@hupstream.com>
  • Loading branch information
apatard committed Sep 26, 2022
1 parent 8941394 commit 98bbb90
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/molecule/test/unit/model/v2/test_dependency_section.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def _model_dependency_errors_section_data():
"_config", ["_model_dependency_errors_section_data"], indirect=True
)
def test_dependency_has_errors(_config):
x = ["Unevaluated properties are not allowed ('name' was unexpected)"]
x = ["0 is not one of ['galaxy', 'shell']"]

assert x == schema_v3.validate(_config)

Expand Down Expand Up @@ -85,6 +85,6 @@ def _model_dependency_shell_errors_section_data():
"_config", ["_model_dependency_shell_errors_section_data"], indirect=True
)
def test_dependency_shell_has_errors(_config):
x = ["Unevaluated properties are not allowed ('command' was unexpected)"]
x = ["None is not of type 'string'"]

assert x == schema_v3.validate(_config)

0 comments on commit 98bbb90

Please sign in to comment.