mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Minor cleanup
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
This commit is contained in:
parent
86cfde38ed
commit
121301514d
1 changed files with 6 additions and 12 deletions
|
@ -3,17 +3,16 @@ import ssl
|
|||
import tarfile
|
||||
|
||||
import pytest
|
||||
|
||||
try:
|
||||
import trustme
|
||||
except ImportError:
|
||||
pass
|
||||
|
||||
from pytestshellutils.utils import ports
|
||||
from saltfactories.utils import random_string
|
||||
|
||||
import salt.utils.http
|
||||
|
||||
pytestmark = [
|
||||
pytest.mark.slow_test,
|
||||
pytest.mark.skip_if_binaries_missing("docker", "dockerd", check_all=False),
|
||||
]
|
||||
|
||||
|
||||
@pytest.mark.parametrize("backend", ["requests", "urllib2", "tornado"])
|
||||
def test_decode_body(webserver, integration_files_dir, backend):
|
||||
|
@ -26,12 +25,6 @@ def test_decode_body(webserver, integration_files_dir, backend):
|
|||
assert isinstance(ret["body"], bytes)
|
||||
|
||||
|
||||
pytestmark = [
|
||||
pytest.mark.slow_test,
|
||||
pytest.mark.skip_if_binaries_missing("docker", "dockerd", check_all=False),
|
||||
]
|
||||
|
||||
|
||||
@pytest.fixture(scope="module")
|
||||
def tinyproxy_port():
|
||||
return ports.get_unused_localhost_port()
|
||||
|
@ -49,6 +42,7 @@ def tinyproxy_pass():
|
|||
|
||||
@pytest.fixture(scope="session")
|
||||
def ca():
|
||||
trustme = pytest.importorskip("trustme")
|
||||
return trustme.CA()
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue