Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion openviking/utils/summarizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ async def summarize(
enqueued_count = 0

telemetry = get_current_telemetry()
for uri, temp_uri in zip(resource_uris, temp_uris, strict=True):
for uri, temp_uri in zip(resource_uris, temp_uris, strict=False):
# Determine context_type based on URI
context_type = get_context_type_for_uri(uri)

Expand Down
10 changes: 10 additions & 0 deletions tests/unit/crypto/test_encryptor.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,16 @@ async def test_decrypt_unencrypted_data(encryptor):
assert decrypted == plaintext


@pytest.mark.asyncio
@pytest.mark.parametrize("plaintext", [b"", b"a", b"ab", b"abc"])
async def test_decrypt_unencrypted_short_plaintext(encryptor, plaintext):
"""Test decrypting unencrypted plaintext shorter than the magic header."""
account_id = "test_account"

decrypted = await encryptor.decrypt(account_id, plaintext)
assert decrypted == plaintext


@pytest.mark.asyncio
async def test_decrypt_corrupted_ciphertext(encryptor):
"""Test decrypting corrupted ciphertext."""
Expand Down
Loading