Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

V1 new entrypoint and experiment tests #608

Open
wants to merge 11 commits into
base: dev
Choose a base branch
from
7 changes: 4 additions & 3 deletions tests/unit/restapi/v1/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -540,7 +540,7 @@ def registered_experiments(
name="experiment3",
group_id=auth_account["default_group_id"],
description="test description",
entrypoint_ids=entrypoint_ids,
entrypoint_ids=entrypoint_ids[:1],
).get_json()
return {
"experiment1": experiment1_response,
Expand Down Expand Up @@ -610,8 +610,8 @@ def registered_entrypoints(
group_id=auth_account["groups"][0]["id"],
task_graph=task_graph,
parameters=parameters,
plugin_ids=plugin_ids,
queue_ids=queue_ids,
plugin_ids=[],
queue_ids=queue_ids[:1],
).get_json()
return {
"entrypoint1": entrypoint1_response,
Expand All @@ -632,6 +632,7 @@ def registered_jobs(
) -> dict[str, Any]:
# Inline import necessary to prevent circular import
import dioptra.restapi.v1.shared.rq_service as rq_service

monkeypatch.setattr(rq_service, "RQQueue", mock_rq.MockRQQueue)

queue_id = registered_queues["queue1"]["snapshot"]
Expand Down
Loading
Loading