mirror of
https://github.com/saltstack/salt.git
synced 2025-04-16 17:50:20 +00:00
m
This commit is contained in:
parent
fc0b20e657
commit
d9652b9a1c
3 changed files with 6 additions and 2 deletions
|
@ -19,7 +19,7 @@ import tempfile
|
|||
import types
|
||||
import zipfile
|
||||
|
||||
import distro # pylint: disable=unused-import
|
||||
import distro
|
||||
import idna
|
||||
import jinja2
|
||||
import looseversion
|
||||
|
@ -432,6 +432,7 @@ def get_tops(extra_mods="", so_mods=""):
|
|||
tops = []
|
||||
mods = [
|
||||
salt,
|
||||
distro,
|
||||
jinja2,
|
||||
yaml,
|
||||
tornado,
|
||||
|
|
|
@ -40,7 +40,7 @@ def test_get_tops_python(version):
|
|||
patch_which = patch("salt.utils.path.which", return_value=True)
|
||||
|
||||
with patch_proc, patch_which:
|
||||
salt.utils.thin.get_tops_python("python3", ext_py_ver=version)
|
||||
salt.utils.thin.get_tops_python("python2", ext_py_ver=version)
|
||||
cmds = [x[0][0] for x in mock_popen.call_args_list]
|
||||
assert [x for x in cmds if "jinja2" in x[2]]
|
||||
if python3:
|
||||
|
|
|
@ -479,6 +479,7 @@ class SSHThinTestCase(TestCase):
|
|||
"""
|
||||
base_tops = [
|
||||
"salt",
|
||||
"distro",
|
||||
"jinja2",
|
||||
"yaml",
|
||||
"tornado",
|
||||
|
@ -591,6 +592,7 @@ class SSHThinTestCase(TestCase):
|
|||
"""
|
||||
base_tops = [
|
||||
"salt",
|
||||
"distro",
|
||||
"jinja2",
|
||||
"yaml",
|
||||
"tornado",
|
||||
|
@ -713,6 +715,7 @@ class SSHThinTestCase(TestCase):
|
|||
"""
|
||||
base_tops = [
|
||||
"salt",
|
||||
"distro",
|
||||
"jinja2",
|
||||
"yaml",
|
||||
"tornado",
|
||||
|
|
Loading…
Add table
Reference in a new issue