Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
PYTHON_VERSIONS = _get_python_versions()
versions = [
(
pythonfinder.utils.get_python_version(python.path.as_posix()),
python.as_python.version,
)
for python in PYTHON_VERSIONS
]
version_dicts = [
(
pythonfinder.utils.parse_python_version(str(python.as_python.version)),
python.as_python.as_dict(),
)
for python in PYTHON_VERSIONS
]
test_paths = [(python.path.as_posix(), True) for python in PYTHON_VERSIONS]
@pytest.mark.parse
@pytest.mark.parametrize("python, expected", versions)
def test_get_version(python, expected):
assert python == str(expected)
@pytest.mark.parse
@pytest.mark.parametrize("python, expected", version_dicts)