We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e759b29 commit 664beadCopy full SHA for 664bead
tests/test_streaming_cache.py
@@ -74,8 +74,13 @@ def test_partial_read():
74
def test_read_handles_are_independant():
75
with closing(ExampleCache()) as cache:
76
put(cache, 'foo', b'123')
77
- with closing(cache.open_read('foo')) as r0, closing(cache.open_read('foo')) as r1:
+ with closing(cache.open_read('foo')) as r0,\
78
+ closing(cache.open_read('foo')) as r1:
79
assert r0.read(2) == b'12'
80
assert r1.read(1) == b'1'
81
assert r0.read(1) == b'3'
82
assert r1.read(2) == b'23'
83
+
84
85
+def test_key_is_not_added_until_commit_is_called():
86
+ with closing(ExampleCache()) as cache:
0 commit comments