Skip to content

Commit 4d8a76d

Browse files
tests: fix mock
1 parent c1b9537 commit 4d8a76d

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

packages/celery-library/tests/conftest.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
# pylint: disable=unused-argument
33

44
import datetime
5+
import threading
56
from collections.abc import AsyncIterator, Callable
67
from functools import partial
78
from typing import Any
@@ -30,10 +31,7 @@
3031

3132

3233
class FakeAppServer(BaseAppServer):
33-
async def on_startup(self) -> None:
34-
pass
35-
36-
async def on_shutdown(self) -> None:
34+
async def lifespan(self, startup_completed_event: threading.Event) -> None:
3735
pass
3836

3937

0 commit comments

Comments
 (0)