Skip to content

Commit

Permalink
Fix UI backend tests
Browse files Browse the repository at this point in the history
  • Loading branch information
cjao committed Oct 18, 2023
1 parent 13288de commit 6664036
Show file tree
Hide file tree
Showing 8 changed files with 177 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,6 @@ def test_electrons_details_function():
assert response.json() == test_data["response_data"]


@pytest.mark.skip(reason="TODO: Fix this failing test, see PR #1729")
def test_electrons_details_executor():
""" "Test electrons for executor details"""
test_data = output_data["test_electrons_details"]["case_executor_1"]
Expand Down
2 changes: 0 additions & 2 deletions tests/covalent_ui_backend_tests/end_points/lattices_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,6 @@ def test_lattices_function_errors():
assert response.json() == test_data["response_data"]


@pytest.mark.skip(reason="TODO: Fix this failing test, see PR #1729")
def test_lattices_function_executor():
"""Test lattices results"""
test_data = output_data["test_lattices_file"]["case_executor_1"]
Expand All @@ -150,7 +149,6 @@ def test_lattices_function_executor():
assert response.json() == test_data["response_data"]


@pytest.mark.skip(reason="TODO: Fix this failing test, see PR #1729")
def test_lattices_function_workflow_executor():
"""Test lattices results"""
test_data = output_data["test_lattices_file"]["case_workflow_executor_1"]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def seed_electron_data():
"electron_id": VALID_NODE_ID,
"name": "executor",
},
"response_data": {"executor_name": "dask", "executor_details": None},
"response_data": {"executor_name": "dask", "executor_details": {}},
},
"case_result_1": {
"status_code": 200,
Expand Down
8 changes: 4 additions & 4 deletions tests/covalent_ui_backend_tests/utils/assert_data/lattices.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def seed_lattice_data():
"dispatch_id": VALID_DISPATCH_ID,
"name": "executor",
},
"response_data": {"executor_name": "dask", "executor_details": None},
"response_data": {"executor_name": "dask", "executor_details": {}},
},
"case_workflow_executor_1": {
"status_code": 200,
Expand All @@ -118,7 +118,7 @@ def seed_lattice_data():
},
"response_data": {
"workflow_executor_name": "dask",
"workflow_executor_details": None,
"workflow_executor_details": {},
},
},
"case_transport_graph_1": {
Expand Down Expand Up @@ -173,7 +173,7 @@ def seed_lattice_data():
"started_at": "2022-10-27T10:08:34.497285",
"ended_at": "2022-10-27T10:08:35.997225",
"status": "COMPLETED",
"updated_at": "2022-10-27T10:08:36.004030",
"updated_at": "2022-10-27T10:08:36.00403",
},
]
},
Expand All @@ -193,7 +193,7 @@ def seed_lattice_data():
"started_at": "2022-10-27T10:08:34.497285",
"ended_at": "2022-10-27T10:08:35.997225",
"status": "COMPLETED",
"updated_at": "2022-10-27T10:08:36.004030",
"updated_at": "2022-10-27T10:08:36.00403",
},
{
"dispatch_id": "69dec597-79d9-4c99-96de-8d5f06f3d4dd",
Expand Down
4 changes: 2 additions & 2 deletions tests/covalent_ui_backend_tests/utils/assert_data/summary.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def seed_summary_data():
"started_at": "2022-09-23T10:01:11.155428",
"ended_at": "2022-09-23T10:01:11.717064",
"status": "COMPLETED",
"updated_at": "2022-09-23T10:01:11.720140",
"updated_at": "2022-09-23T10:01:11.72014",
},
{
"dispatch_id": "e8fd09c9-1406-4686-9e77-c8d4d64a76ee",
Expand Down Expand Up @@ -118,7 +118,7 @@ def seed_summary_data():
"started_at": "2022-09-23T10:01:11.155428",
"ended_at": "2022-09-23T10:01:11.717064",
"status": "COMPLETED",
"updated_at": "2022-09-23T10:01:11.720140",
"updated_at": "2022-09-23T10:01:11.72014",
}
],
"total_count": 3,
Expand Down
Loading

0 comments on commit 6664036

Please sign in to comment.