File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 44from pathlib import Path
55
66from clabe .cache_manager import CachedSettings , CacheManager , SyncStrategy
7-
7+ from clabe . cache_manager import _DEFAULT_MAX_HISTORY
88
99class 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" )
You can’t perform that action at this time.
0 commit comments