Skip to content

Commit

Permalink
fix formatting (2)
Browse files Browse the repository at this point in the history
Signed-off-by: Rudolf Braun <[email protected]>
  • Loading branch information
BraunRudolf committed Jun 21, 2024
1 parent e540ef9 commit 8fc4f8a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions pv_site_api/cache.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
""" Caching utils for api"""

import json
import os
from datetime import datetime, timedelta, timezone
Expand Down
10 changes: 9 additions & 1 deletion tests/test_cache.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
""" Test for chach """

import logging
from datetime import datetime, timedelta, timezone

Expand All @@ -7,7 +9,10 @@


def get_logger():
# Configure structlog to use caplog-compatible output
"""
Configure structlog to use caplog-compatible output
"""

structlog.configure(
processors=[
structlog.stdlib.add_log_level,
Expand All @@ -25,6 +30,9 @@ def get_logger():


def test_remove_old_cache(caplog):
"""
Test entry removal and debug messages
"""
with caplog.at_level(logging.DEBUG):

now = datetime.now(tz=timezone.utc)
Expand Down

0 comments on commit 8fc4f8a

Please sign in to comment.