Skip to content

Commit 5d7abf4

Browse files
committed
rename noisysetter -> noisygetter
1 parent 5e9ffb8 commit 5d7abf4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_store/test_wrapper.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,14 @@ async def set(self, key: str, value: Buffer) -> None:
3232
@pytest.mark.parametrize("store", ["local", "memory", "zip"], indirect=True)
3333
async def test_wrapped_get(store: Store, capsys: pytest.CaptureFixture[str]) -> None:
3434
# define a class that prints when it sets
35-
class NoisySetter(WrapperStore):
35+
class NoisyGetter(WrapperStore):
3636
def get(self, key: str, prototype: BufferPrototype) -> None:
3737
print(f"getting {key}")
3838
return super().get(key, prototype=prototype)
3939

4040
key = "foo"
4141
value = Buffer.from_bytes(b"bar")
42-
store_wrapped = NoisySetter(store)
42+
store_wrapped = NoisyGetter(store)
4343
await store_wrapped.set(key, value)
4444
assert await store_wrapped.get(key, buffer_prototype) == value
4545
captured = capsys.readouterr()

0 commit comments

Comments
 (0)