Skip to content

Commit

Permalink
Fix coverage ignore
Browse files Browse the repository at this point in the history
  • Loading branch information
Guillaume Gauvrit committed Dec 20, 2023
1 parent c1a2989 commit 69c28e7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/blacksmith/middleware/_async/http_cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
4 changes: 2 additions & 2 deletions src/blacksmith/middleware/_sync/http_cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 69c28e7

Please sign in to comment.