From 136f5866a610a631c70aa2b6241d4736246ace7b Mon Sep 17 00:00:00 2001 From: Adrian Chang Date: Thu, 28 Mar 2024 17:53:22 -0700 Subject: [PATCH 1/2] reenable tests --- tests/integration/test_foundry.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/tests/integration/test_foundry.py b/tests/integration/test_foundry.py index fb4740da5..f084d2d8c 100644 --- a/tests/integration/test_foundry.py +++ b/tests/integration/test_foundry.py @@ -103,8 +103,6 @@ def test_run_foundry_app_with_data_row_id(foundry_client, data_row, app, task.wait_till_done() assert task.status == 'COMPLETE' - -@pytest.mark.skip(reason="broken") def test_run_foundry_app_with_global_key(foundry_client, data_row, app, random_str): data_rows = lb.GlobalKeys([data_row.global_key]) @@ -116,7 +114,6 @@ def test_run_foundry_app_with_global_key(foundry_client, data_row, app, assert task.status == 'COMPLETE' -@pytest.mark.skip(reason="broken") def test_run_foundry_app_returns_model_run_id(foundry_client, data_row, app, random_str): data_rows = lb.GlobalKeys([data_row.global_key]) @@ -129,7 +126,6 @@ def test_run_foundry_app_returns_model_run_id(foundry_client, data_row, app, assert model_run.uid == model_run_id -@pytest.mark.skip(reason="broken") def test_run_foundry_with_invalid_data_row_id(foundry_client, app, random_str): invalid_datarow_id = 'invalid-global-key' data_rows = lb.GlobalKeys([invalid_datarow_id]) @@ -141,7 +137,6 @@ def test_run_foundry_with_invalid_data_row_id(foundry_client, app, random_str): assert invalid_datarow_id in exception.value -@pytest.mark.skip(reason="broken") def test_run_foundry_with_invalid_global_key(foundry_client, app, random_str): invalid_global_key = 'invalid-global-key' data_rows = lb.GlobalKeys([invalid_global_key]) From d29fc12ae9fc3378211c958b9337bad73a28c8a5 Mon Sep 17 00:00:00 2001 From: Adrian Chang Date: Thu, 28 Mar 2024 17:56:28 -0700 Subject: [PATCH 2/2] reenable tests --- tests/integration/test_foundry.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/integration/test_foundry.py b/tests/integration/test_foundry.py index f084d2d8c..9367af609 100644 --- a/tests/integration/test_foundry.py +++ b/tests/integration/test_foundry.py @@ -92,7 +92,6 @@ def test_get_app_with_invalid_id(foundry_client): foundry_client._get_app("invalid-id") -@pytest.mark.skip(reason="broken") def test_run_foundry_app_with_data_row_id(foundry_client, data_row, app, random_str): data_rows = lb.DataRowIds([data_row.uid]) @@ -103,6 +102,7 @@ def test_run_foundry_app_with_data_row_id(foundry_client, data_row, app, task.wait_till_done() assert task.status == 'COMPLETE' + def test_run_foundry_app_with_global_key(foundry_client, data_row, app, random_str): data_rows = lb.GlobalKeys([data_row.global_key]) @@ -145,4 +145,4 @@ def test_run_foundry_with_invalid_global_key(foundry_client, app, random_str): model_run_name=f"test-app-with-invalid-global-key-{random_str}", data_rows=data_rows, app_id=app.id) - assert invalid_global_key in exception.value + assert invalid_global_key in exception.value \ No newline at end of file