Skip to content

Commit

Permalink
Added celery task testing
Browse files Browse the repository at this point in the history
  • Loading branch information
alexpro2022 committed Dec 9, 2023
1 parent 8e9bb4e commit 2a11ecf
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/unit_tests/test_task.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
from celery.local import PromiseProxy

from app.celery_tasks.tasks import synchronize


def test_task_name():
def test_task():
assert isinstance(synchronize, PromiseProxy), type(synchronize)
assert synchronize.name == 'app.celery_tasks.tasks.synchronize'

0 comments on commit 2a11ecf

Please sign in to comment.