def test_python_check_version_bad(capsys): with pytest.raises(SystemExit): python_check_version((4, 0)) out, err = capsys.readouterr() assert err
from requests_mv_integrations.exceptions import ( TuneRequestModuleError, ) from requests_mv_integrations.support.utils import ( convert_size, base_class_name, python_check_version, ) from requests_mv_integrations.support.safe_cast import ( safe_int, safe_str, ) from .parse import (requests_response_text_html) log = logging.getLogger(__name__) python_check_version(__python_required_version__) def validate_response( response, request_curl, request_label=None, ): """Validate response Args: response: request_label: request_url: Returns:
def test_python_check_version_good(): assert python_check_version(__python_required_version__) == 0