Skip to content

Commit

Permalink
minor test formatting fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
zmumi committed May 4, 2024
1 parent 96d63bc commit cbfae23
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions tests/asynciotests/test_wrapper_on_asyncio.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,8 +233,8 @@ async def test_should_return_same_value_on_constant_key_function(self):

@memoize(
configuration=MutableCacheConfiguration
.initialized_with(DefaultInMemoryCacheConfiguration())
.set_key_extractor(key_extractor)
.initialized_with(DefaultInMemoryCacheConfiguration())
.set_key_extractor(key_extractor)
)
async def get_value(arg, kwarg=None):
return value
Expand All @@ -260,10 +260,10 @@ async def test_should_release_keys_on_caching_multiple_elements(self):

@memoize(
configuration=MutableCacheConfiguration
.initialized_with(DefaultInMemoryCacheConfiguration())
.set_eviction_strategy(LeastRecentlyUpdatedEvictionStrategy(capacity=2))
.set_key_extractor(key_extractor)
.set_storage(storage)
.initialized_with(DefaultInMemoryCacheConfiguration())
.set_eviction_strategy(LeastRecentlyUpdatedEvictionStrategy(capacity=2))
.set_key_extractor(key_extractor)
.set_storage(storage)
)
async def get_value(arg, kwarg=None):
return value
Expand Down Expand Up @@ -291,8 +291,8 @@ async def test_should_throw_exception_on_configuration_not_ready(self):
# given
@memoize(
configuration=MutableCacheConfiguration
.initialized_with(DefaultInMemoryCacheConfiguration())
.set_configured(False)
.initialized_with(DefaultInMemoryCacheConfiguration())
.set_configured(False)
)
async def get_value(arg, kwarg=None):
raise ValueError("Get lost")
Expand Down Expand Up @@ -339,7 +339,6 @@ async def get_value(arg, kwarg=None):
self.assertEqual(context.exception.__class__, CachedMethodFailedException)
self.assertEqual(context.exception.__cause__.__class__, _timeout_error_type())


@staticmethod
async def _call_thrice(call):
# gen_test setup somehow interferes with coroutines and futures
Expand Down

0 comments on commit cbfae23

Please sign in to comment.