Exemplo n.º 1
0
def test_parse_models_uri_with_latest(uri, expected_name):
    (name, version, stage) = _parse_model_uri(uri)
    assert name == expected_name
    assert version is None
    assert stage is None
Exemplo n.º 2
0
def test_parse_models_uri_invalid_input(uri):
    with pytest.raises(MlflowException, match="Not a proper models"):
        _parse_model_uri(uri)
Exemplo n.º 3
0
def test_parse_models_uri_invalid_input(uri):
    with pytest.raises(MlflowException):
        _parse_model_uri(uri)