Skip to content

Commit

Permalink
fix: missing workspace for read (#130)
Browse files Browse the repository at this point in the history
  • Loading branch information
ArzelaAscoIi authored Nov 7, 2023
1 parent 1d82a65 commit 76af2f7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/integration/service/test_integration_files_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,11 @@ async def test_upload_texts(self, integration_config: CommonConfig, workspace_na

@pytest.mark.asyncio
class TestListFilesService:
async def test_list_all_files(self, integration_config: CommonConfig) -> None:
async def test_list_all_files(self, integration_config: CommonConfig, workspace_name: str) -> None:
async with FilesService.factory(integration_config) as file_service:
file_batches: List[List[File]] = []
async for file_batch in file_service.list_all(
workspace_name="sdk_read",
workspace_name=workspace_name,
batch_size=11,
timeout_s=120,
):
Expand All @@ -70,12 +70,12 @@ async def test_list_all_files(self, integration_config: CommonConfig) -> None:

@pytest.mark.asyncio
class TestDownloadFilesService:
async def test_download_files(self, integration_config: CommonConfig) -> None:
async def test_download_files(self, integration_config: CommonConfig, workspace_name: str) -> None:
with tempfile.TemporaryDirectory() as tmp_dir:
async with FilesService.factory(integration_config) as file_service:
# cancel download after 5 seconds
try:
await file_service.download(workspace_name="sdk_read", file_dir=tmp_dir, timeout_s=5)
await file_service.download(workspace_name=workspace_name, file_dir=tmp_dir, timeout_s=5)
except Exception:
pass
finally:
Expand Down

0 comments on commit 76af2f7

Please sign in to comment.