Skip to content

Commit

Permalink
Fix test_post_new_job_invalid_items_spec
Browse files Browse the repository at this point in the history
  • Loading branch information
beenje committed Aug 5, 2023
1 parent 67463cf commit ad0144f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion quetz/tests/test_jobs.py
Original file line number Diff line number Diff line change
Expand Up @@ -598,10 +598,14 @@ def test_post_new_job_manifest_validation(


@pytest.mark.parametrize("user_role", ["owner"])
def test_post_new_job_invalid_items_spec(auth_client, user, db, dummy_job_plugin):
def test_post_new_job_invalid_items_spec(
auth_client, user, db, dummy_job_plugin, mocker
):
# items_spec=None is not allowed for jobs
# (but it works with actions)
manifest = "quetz-dummyplugin:dummy_func"
dummy_func = mocker.Mock()
mocker.patch("quetz_dummyplugin.jobs.dummy_func", dummy_func, create=True)
response = auth_client.post(
"/api/jobs", json={"items_spec": None, "manifest": manifest}
)
Expand Down

0 comments on commit ad0144f

Please sign in to comment.