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 57edd4a commit 7bbc23cCopy full SHA for 7bbc23c
1 file changed
tests/test_cooldown.py
@@ -12,7 +12,7 @@
12
shared_cooldown,
13
)
14
from cooldowns.buckets import _HashableArguments
15
-from cooldowns.exceptions import CallableOnCooldown
+from cooldowns.exceptions import CallableOnCooldown, NonExistent
16
17
18
@pytest.mark.asyncio
@@ -300,3 +300,9 @@ async def test_3(*args, **kwargs):
300
301
with pytest.raises(CallableOnCooldown):
302
await test_3(1, 2)
303
+
304
+ with pytest.raises(NonExistent):
305
306
+ @shared_cooldown("r_2")
307
+ async def test_4():
308
+ pass
0 commit comments