def test_invalid_version_pragma(file_version): with pytest.raises(VersionException): validate_version_pragma(f" @version {file_version}", (SRC_LINE))
def test_valid_version_pragma(file_version, mock_version): mock_version(COMPILER_VERSION) validate_version_pragma(f" @version {file_version}", (SRC_LINE))
def test_valid_version_pragma(file_version): validate_version_pragma(f" @version {file_version}", (SRC_LINE))