MCPcopy Create free account
hub / github.com/Drakkar-Software/OctoBot / _TestClass

Class _TestClass

packages/commons/tests/test_cache_util.py:24–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22
23
24class _TestClass:
25 def __init__(self):
26 self.call_count = 0
27
28 @cache_util.prevented_multiple_calls
29 async def decorated_method(self, *args, **kwargs):
30 self.call_count += 1
31 return self.call_count
32
33
34async def test_prevented_multiple_calls_without_max_period():

Calls

no outgoing calls