We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8c1db90 commit 98e84a2Copy full SHA for 98e84a2
test_python_toolbox/test_caching/test_cache.py
@@ -192,8 +192,11 @@ def test_double_caching():
192
193
194
def test_time_to_keep():
195
+ counting_func.i = 0 # Resetting so we could refer to hard numbers
196
+ # without worrying whether other tests made `i` higher.
197
f = cache(time_to_keep={'days': 356})(counting_func)
198
199
+ print(f('zero'))
200
assert f('zero') == 0 # Just to get rid of zero
201
202
assert f('a') == 1
0 commit comments