Skip to content

Commit 0e50eda

Browse files
committed
Fix tests for cached settings
1 parent e6a33f2 commit 0e50eda

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/test_cached_settings.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from pathlib import Path
55

66
from clabe.cache_manager import CachedSettings, CacheManager, SyncStrategy
7-
7+
from clabe.cache_manager import _DEFAULT_MAX_HISTORY
88

99
class TestCachedSettings:
1010
"""Tests for the generic CachedSettings class."""
@@ -18,7 +18,7 @@ def test_add_single_value(self):
1818

1919
def test_add_multiple_values(self):
2020
"""Test adding multiple values maintains order (newest first)."""
21-
cache = CachedSettings[str](max_history=5)
21+
cache = CachedSettings[str](max_history=_DEFAULT_MAX_HISTORY)
2222
cache.add("first")
2323
cache.add("second")
2424
cache.add("third")
@@ -38,7 +38,7 @@ def test_max_history_limit(self):
3838

3939
def test_duplicate_values_moved_to_front(self):
4040
"""Test that adding a duplicate moves it to the front."""
41-
cache = CachedSettings[str](max_history=5)
41+
cache = CachedSettings[str](max_history=_DEFAULT_MAX_HISTORY)
4242
cache.add("first")
4343
cache.add("second")
4444
cache.add("third")

0 commit comments

Comments
 (0)