Skip to content

Commit

Permalink
test waiter.create_waiter_with_client()
Browse files Browse the repository at this point in the history
  • Loading branch information
jakob-keller committed Aug 17, 2024
1 parent 54a110b commit aada51a
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions tests/test_waiter.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,32 @@
import asyncio

import pytest

from aiobotocore.waiter import (
AIOWaiter,
WaiterModel,
create_waiter_with_client,
)


@pytest.fixture
def cloudformation_waiter_model(cloudformation_client):
config = cloudformation_client._get_waiter_config()
return WaiterModel(config)


@pytest.mark.moto
def test_create_waiter_with_client(
cloudformation_client, cloudformation_waiter_model
):
waiter = create_waiter_with_client(
'StackCreateComplete',
cloudformation_waiter_model,
cloudformation_client,
)
assert isinstance(waiter, AIOWaiter)
assert asyncio.iscoroutinefunction(waiter.wait)


@pytest.mark.moto
@pytest.mark.asyncio
Expand Down

0 comments on commit aada51a

Please sign in to comment.