From 69c28e76faa6a1678f1b9e76be14006c54b1fcd2 Mon Sep 17 00:00:00 2001 From: Guillaume Gauvrit Date: Wed, 20 Dec 2023 18:48:12 +0100 Subject: [PATCH] Fix coverage ignore --- src/blacksmith/middleware/_async/http_cache.py | 4 ++-- src/blacksmith/middleware/_sync/http_cache.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/blacksmith/middleware/_async/http_cache.py b/src/blacksmith/middleware/_async/http_cache.py index b2344c38..559410d0 100644 --- a/src/blacksmith/middleware/_async/http_cache.py +++ b/src/blacksmith/middleware/_async/http_cache.py @@ -66,9 +66,9 @@ def __init__( async def initialize(self) -> None: try: await self._cache.initialize() - except AttributeError: # coverage-ignore + except AttributeError: # coverage: ignore # the redis sync version does not implement this method - pass + ... async def cache_response( self, diff --git a/src/blacksmith/middleware/_sync/http_cache.py b/src/blacksmith/middleware/_sync/http_cache.py index 427b9027..de1c7ef2 100644 --- a/src/blacksmith/middleware/_sync/http_cache.py +++ b/src/blacksmith/middleware/_sync/http_cache.py @@ -66,9 +66,9 @@ def __init__( def initialize(self) -> None: try: self._cache.initialize() - except AttributeError: # coverage-ignore + except AttributeError: # coverage: ignore # the redis sync version does not implement this method - pass + ... def cache_response( self,