-
-
Notifications
You must be signed in to change notification settings - Fork 183
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test error conditions of
client.get_waiter()
- Loading branch information
1 parent
e879206
commit 2a159ad
Showing
1 changed file
with
19 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import pytest | ||
|
||
|
||
@pytest.mark.moto | ||
def test_get_waiter_not_supported_by_service(sns_client): | ||
waiter_name = 'sns_does_not_support_waiters' | ||
with pytest.raises( | ||
ValueError, match=f'Waiter does not exist: {waiter_name}' | ||
): | ||
sns_client.get_waiter(waiter_name) | ||
|
||
|
||
@pytest.mark.moto | ||
def test_get_waiter_invalid_waiter_name(cloudformation_client): | ||
waiter_name = 'this_name_is_invalid' | ||
with pytest.raises( | ||
ValueError, match=f'Waiter does not exist: {waiter_name}' | ||
): | ||
cloudformation_client.get_waiter(waiter_name) |