Skip to content

Commit

Permalink
Fix tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
mellis13 committed Nov 1, 2024
1 parent 736872a commit a1e4ec7
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/python/test_bytes.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,10 @@ def test_poll_bytes(mock_data, context):

assert client.bytes_exists("python_bytes_exist")

assert client.poll_bytes("python_bytes_poll", 0.1, 5) == True
assert client.poll_bytes("python_bytes_poll", 1, 5) == True


def test_remove_bytes(mock_data, context):
def test_delete_bytes(mock_data, context):
"""Test that raw bytes exist in the database
after a put operation"""

Expand All @@ -88,10 +88,10 @@ def test_remove_bytes(mock_data, context):
data = np.random.rand(2, 8, 4, 2, 30)
bytes = io.BytesIO(data.tobytes())

client.put_bytes("python_bytes_removed", bytes)
client.put_bytes("python_bytes_deleted", bytes)

assert client.bytes_exists("python_bytes_removed")
assert client.bytes_exists("python_bytes_deleted")

client.remove_bytes("python_bytes_removed", bytes)
client.delete_bytes("python_bytes_deleted", bytes)

assert not client.bytes_exists("python_bytes_removed")
assert not client.bytes_exists("python_bytes_deleted")

0 comments on commit a1e4ec7

Please sign in to comment.