Skip to content

Commit

Permalink
Fix test function for SLS context
Browse files Browse the repository at this point in the history
This function contained a bug that was comparing actual to actual, so
every test always passed.
  • Loading branch information
amendlik committed Nov 25, 2024
1 parent 9233e1c commit ae98e37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/pytests/unit/utils/templates/test_wrap_tmpl_func.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def _test_generated_sls_context(tmplpath, sls, **expected):
tmplpath = f"C:{tmplpath}"
expected["tplpath"] = tmplpath
actual = generate_sls_context(tmplpath, sls)
assert {key: actual[key] for key in expected if key in actual} == actual
assert {key: expected[key] for key in expected if key in actual} == actual


def test_sls_context_call(tmp_path):
Expand Down

0 comments on commit ae98e37

Please sign in to comment.