Skip to content

Commit ebb51ae

Browse files
committed
Update the mocked test to properly mock the expected property version.
1 parent 97d0435 commit ebb51ae

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

tests/btrdb/test_stream.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -272,15 +272,14 @@ def test_update_collection(self):
272272
endpoint = Mock(Endpoint)
273273
endpoint.streamInfo = Mock(return_value=("koala", 42, {}, {}, None))
274274
endpoint.info = Mock(return_value={"majorVersion": 5, "minorVersion": 30})
275-
stream = Stream(btrdb=BTrDB(endpoint), uuid=uu)
275+
stream = Stream(btrdb=BTrDB(endpoint), uuid=uu, property_version=42)
276276

277277
collection = "giraffe"
278278

279279
stream.update(collection=collection)
280280
stream._btrdb.ep.setStreamTags.assert_called_once_with(
281-
uu=uu, expected=None, tags={}, collection=collection
281+
uu=uu, expected=42, tags={}, collection=collection
282282
)
283-
stream._btrdb.ep.setStreamAnnotations.assert_not_called()
284283

285284
def test_update_annotations(self):
286285
"""

0 commit comments

Comments
 (0)