Skip to content

Commit

Permalink
Remove more qelectrons tests
Browse files Browse the repository at this point in the history
  • Loading branch information
cjao committed Jan 17, 2025
1 parent 1d70d03 commit 446e75e
Showing 1 changed file with 0 additions and 31 deletions.
31 changes: 0 additions & 31 deletions tests/covalent_ui_backend_tests/end_points/electrons_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -361,34 +361,3 @@ def test_electrons_inputs_bad_request():
},
}
}


@pytest.fixture
def qelectron_mocked_data_for_jobs(mocker):
from covalent.quantum.qserver.database import Database

return mocker.patch.object(Database, "get_db_dict", return_value=mock_input_data_jobs)


def test_get_qelectrons_jobs(qelectron_mocked_data_for_jobs):
test_data = output_data["test_get_qelectrons_jobs"]["case_1"]
response = object_test_template(
api_path=output_data["test_get_qelectrons_jobs"]["api_path"],
app=fastapi_app,
method_type=MethodType.GET,
path=test_data["path"],
)
assert response.status_code == test_data["status_code"]
assert response.json() == test_data["response_data"]


def test_get_qelectron_job_detail(qelectron_mocked_data_for_jobs):
test_data = output_data["test_get_qelectron_job_detail"]["case_1"]
response = object_test_template(
api_path=output_data["test_get_qelectron_job_detail"]["api_path"],
app=fastapi_app,
method_type=MethodType.GET,
path=test_data["path"],
)
assert response.status_code == test_data["status_code"]
assert response.json() == test_data["response_data"]

0 comments on commit 446e75e

Please sign in to comment.