Skip to content

Commit

Permalink
Minor
Browse files Browse the repository at this point in the history
  • Loading branch information
Akshay Avinash committed Oct 22, 2024
1 parent 33b307a commit 8a68a26
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/unit/storages/test_key_value_store.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from __future__ import annotations

from pathlib import Path
import asyncio
from typing import AsyncGenerator
from urllib.parse import unquote, urlparse

Expand Down Expand Up @@ -109,4 +109,6 @@ async def test_static_get_public_url(key_value_store: KeyValueStore) -> None:
public_url = await key_value_store.get_public_url('test-static')

path = unquote(urlparse(public_url).path) # extract path from a 'file:///' URI
assert Path(path).read_text() == 'static'

f = await asyncio.to_thread(open, path, mode='r')
assert f.read() == 'static'

0 comments on commit 8a68a26

Please sign in to comment.