Skip to content
Snippets Groups Projects
Verified Commit 53136b73 authored by Antoine R. Dumont's avatar Antoine R. Dumont
Browse files

swh.scheduler.tests: Mark db tests as such

This will work around the current debian package build failure

Related T1498
parent e26aec7a
No related branches found
Tags v0.0.40
No related merge requests found
......@@ -41,6 +41,7 @@ def test_multiping(swh_app, celery_session_worker):
assert ("OK (kw={'i': %s})" % i) in results
@pytest.mark.db
def test_scheduler_fixture(swh_app, celery_session_worker, swh_scheduler):
"Test that the scheduler fixture works properly"
task_type = swh_scheduler.get_task_type('swh-test-ping')
......@@ -58,6 +59,7 @@ def test_scheduler_fixture(swh_app, celery_session_worker, swh_scheduler):
AsyncResult(id=task['backend_id']).get()
@pytest.mark.db
def test_task_return_value(swh_app, celery_session_worker, swh_scheduler):
task_type = swh_scheduler.get_task_type('swh-test-add')
assert task_type
......@@ -73,6 +75,7 @@ def test_task_return_value(swh_app, celery_session_worker, swh_scheduler):
assert value == 42
@pytest.mark.db
def test_task_exception(swh_app, celery_session_worker, swh_scheduler):
task_type = swh_scheduler.get_task_type('swh-test-error')
assert task_type
......
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