Exemplo n.º 1
0
def test_valid_icon_path():
    args = mlflow_server_proxy.setup_mlflow()
    launcher_entry = args.get("launcher_entry")
    actual_icon_path = launcher_entry.get("icon_path")
    expected_icon_path = os.path.join(
        os.path.dirname(os.path.abspath(__file__)).strip("/tests"), "icons",
        "mlflow.svg")
    assert expected_icon_path in actual_icon_path
Exemplo n.º 2
0
def test_invalid_absurl():
    args = mlflow_server_proxy.setup_mlflow()
    absolute_url = args.get("absolute_url")
    assert absolute_url != "aedfa"
Exemplo n.º 3
0
def test_valid_absurl():
    args = mlflow_server_proxy.setup_mlflow()
    absolute_url = args.get("absolute_url")
    assert absolute_url is False
Exemplo n.º 4
0
def test_invalid_icon_path():
    args = mlflow_server_proxy.setup_mlflow()
    launcher_entry = args.get("launcher_entry")
    actual_icon_path = launcher_entry.get("icon_path")
    expected_icon_path = "/a/b/c"
    assert expected_icon_path != actual_icon_path
Exemplo n.º 5
0
def test_invalid_timeout():
    args = mlflow_server_proxy.setup_mlflow()
    timeout = args.get("timeout")
    assert str(timeout) != 'aedae'
Exemplo n.º 6
0
def test_valid_timeout():
    args = mlflow_server_proxy.setup_mlflow()
    timeout = args.get("timeout")
    assert str(timeout) == '10'
Exemplo n.º 7
0
def test_invalid_title():
    args = mlflow_server_proxy.setup_mlflow()
    launcher_entry = args.get("launcher_entry")
    assert launcher_entry.get('title') != 'abcd'
Exemplo n.º 8
0
def test_valid_title():
    args = mlflow_server_proxy.setup_mlflow()
    launcher_entry = args.get("launcher_entry")
    assert "MLFlow" in launcher_entry.get("title")