mirror of
https://github.com/calibrain/shelfmark.git
synced 2026-10-05 22:05:50 +01:00
Backend test hardening + quality enforcement (#872)
- Reworked many tests - Enforcing lint + type checking for test suite - Fixed various issues surfaced by the new tests - CI tweaks
This commit is contained in:
@@ -3,7 +3,6 @@ Tests for the Prowlarr release cache.
|
||||
"""
|
||||
|
||||
import time
|
||||
import pytest
|
||||
|
||||
# Import the cache module
|
||||
from shelfmark.release_sources.prowlarr import cache
|
||||
@@ -106,7 +105,9 @@ class TestProwlarrCache:
|
||||
def cache_operations():
|
||||
try:
|
||||
for i in range(100):
|
||||
cache.cache_release(f"thread-{threading.current_thread().name}-{i}", {"data": i})
|
||||
cache.cache_release(
|
||||
f"thread-{threading.current_thread().name}-{i}", {"data": i}
|
||||
)
|
||||
cache.get_release(f"thread-{threading.current_thread().name}-{i}")
|
||||
except Exception as e:
|
||||
errors.append(e)
|
||||
|
||||
Reference in New Issue
Block a user