Skip to content

Commit

Permalink
update tests for reductstore v1.11
Browse files Browse the repository at this point in the history
  • Loading branch information
atimin committed Aug 20, 2024
1 parent 917429f commit 9ff4595
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions tests/bucket_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ async def test__get_info(bucket_2):
"latest_record": 6000000,
"name": "bucket-2",
"oldest_record": 5000000,
"size": 108,
"size": 88,
"is_provisioned": False,
}

Expand All @@ -86,7 +86,7 @@ async def test__get_entries(bucket_1):
"name": "entry-1",
"oldest_record": 1000000,
"record_count": 2,
"size": 108,
"size": 88,
}

assert entries[1].model_dump() == {
Expand All @@ -95,7 +95,7 @@ async def test__get_entries(bucket_1):
"name": "entry-2",
"oldest_record": 3000000,
"record_count": 3,
"size": 157,
"size": 133,
}


Expand Down Expand Up @@ -187,6 +187,7 @@ async def test__write_with_content_type(bucket_1):


@pytest.mark.asyncio
@pytest.skip # This test is not working see https://github.com/reductstore/reductstore/issues/547
async def test_write_big_blob(bucket_1):
"""Should write big blob and stop upload if http status is not 200"""
await bucket_1.write("entry-1", b"1" * 1000000, timestamp=1)
Expand Down
2 changes: 1 addition & 1 deletion tests/client_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ async def test__info(client):
assert info.version >= "1.10.0"
assert info.uptime >= 1
assert info.bucket_count == 2
assert info.usage == 373
assert info.usage == 309
assert info.oldest_record == 1_000_000
assert info.latest_record == 6_000_000

Expand Down

0 comments on commit 9ff4595

Please sign in to comment.