We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e279206 commit 8e49543Copy full SHA for 8e49543
services/api-server/tests/unit/celery/test_functions.py
@@ -1,3 +1,4 @@
1
+import inspect
2
from collections.abc import Callable
3
4
import pytest
@@ -54,7 +55,11 @@ async def run_function(
54
55
project_job_id=ProjectID(_faker.uuid4()),
56
)
57
58
+ # check our mock task is correct
59
assert run_function_task.__name__ == run_function.__name__
60
+ assert inspect.signature(run_function_task) == inspect.signature(
61
+ run_function
62
+ ), f"Signature mismatch: {inspect.signature(run_function_task)} != {inspect.signature(run_function)}"
63
64
def _(celery_app: Celery) -> None:
65
register_task(celery_app, run_function)
0 commit comments