Skip to content
Snippets Groups Projects
Commit 75324f19 authored by Nathaniel Kofalt's avatar Nathaniel Kofalt
Browse files

Add peek test

parent 1700714e
No related branches found
No related tags found
No related merge requests found
......@@ -153,6 +153,11 @@ def test_jobs(data_builder, default_payload, as_public, as_user, as_admin, as_ro
r = as_root.get('/jobs/next', params={'tags': 'fake-tag'})
assert r.status_code == 400
# get next job with peek
r = as_root.get('/jobs/next', params={'tags': 'test-tag', 'peek': True})
assert r.ok
next_job_id = r.json()['id']
# get next job
r = as_root.get('/jobs/next', params={'tags': 'test-tag'})
assert r.ok
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment