mirror of
https://github.com/django-q2/django-q2.git
synced 2026-10-04 03:08:12 +08:00
Fix unclear error when function is not called correctly (#19)
This commit is contained in:
@@ -64,7 +64,7 @@ def test_sync(broker):
|
||||
|
||||
@pytest.mark.django_db
|
||||
def test_sync_raise_exception(broker):
|
||||
with pytest.raises(TaskError):
|
||||
with pytest.raises(Exception):
|
||||
async_task("django_q.tests.tasks.raise_exception", broker=broker, sync=True)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user