2023-04-20 13:01:58 -07:00
|
|
|
import logging
|
2018-08-14 10:20:46 -05:00
|
|
|
import os
|
2023-04-20 13:01:58 -07:00
|
|
|
|
2018-08-14 10:20:46 -05:00
|
|
|
import pytest
|
2020-05-27 06:59:11 +01:00
|
|
|
|
|
|
|
log = logging.getLogger(__name__)
|
2018-08-14 10:20:46 -05:00
|
|
|
|
|
|
|
|
2020-12-08 22:22:46 +00:00
|
|
|
@pytest.fixture(scope="session")
|
2020-05-27 06:59:11 +01:00
|
|
|
def target_python_version():
|
2022-08-11 16:26:40 +01:00
|
|
|
return 3
|
2020-05-27 06:59:11 +01:00
|
|
|
|
|
|
|
|
2020-12-08 22:22:46 +00:00
|
|
|
@pytest.fixture(scope="session")
|
2020-05-27 06:59:11 +01:00
|
|
|
def target_salt_version():
|
2024-11-04 14:39:59 -07:00
|
|
|
target_salt = os.environ.get("SaltVersion", "")
|
2023-06-26 15:48:10 -07:00
|
|
|
|
2023-04-20 13:01:58 -07:00
|
|
|
if target_salt.startswith("v"):
|
|
|
|
target_salt = target_salt[1:]
|
2023-04-26 10:30:40 -07:00
|
|
|
if target_salt in ("default", "latest", "master", "nightly"):
|
2020-05-27 06:59:11 +01:00
|
|
|
pytest.skip("Don't have a specific salt version to test against")
|
|
|
|
return target_salt
|