Skip to content

Commit

Permalink
Use dummy channel from nerdd-link
Browse files Browse the repository at this point in the history
  • Loading branch information
shirte committed Nov 24, 2024
1 parent cfbc64d commit ea2f5c5
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/mocks/channel.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
from pytest_bdd import given

from ..async_step import async_step


@given("a mocked channel")
@async_step
async def mock_channel(mocker, channel):
mocker.patch(
"nerdd_backend.lifespan.InitializeAppLifespan.get_channel",
return_value=channel,
)

0 comments on commit ea2f5c5

Please sign in to comment.