Example #1
0
def test_invalid_version_pragma(file_version):
    with pytest.raises(VersionException):
        validate_version_pragma(f" @version {file_version}", (SRC_LINE))
Example #2
0
def test_valid_version_pragma(file_version, mock_version):
    mock_version(COMPILER_VERSION)
    validate_version_pragma(f" @version {file_version}", (SRC_LINE))
Example #3
0
def test_valid_version_pragma(file_version):
    validate_version_pragma(f" @version {file_version}", (SRC_LINE))