Add initial test for zmq import error on what is believed to be Python teardown

This commit is contained in:
MKLeb 2023-03-21 19:55:17 -04:00
parent 1619cbc448
commit d352af4573
3 changed files with 44 additions and 0 deletions

View file

@ -0,0 +1 @@
{{ foobar }}

View file

@ -0,0 +1,26 @@
#!py
"""."""
def run():
"""."""
return {
"file_foobar": {
"file.managed": [
{
"name": "/foobar"
},
{
"template": "jinja"
},
{
"context": {
"foobar": "baz",
}
},
{
"source": "salt://breaks/foobar.jinja",
}
]
}
}

View file

@ -0,0 +1,17 @@
import logging
import pytest
pytestmark = [
pytest.mark.skip_on_windows,
]
log = logging.getLogger(__name__)
def test_check_imports(salt_call_cli):
"""
Test imports
"""
output = salt_call_cli.run("state.apply", "breaks", "--output-diff", "test=true")
print(output)