From 84f5e1437f4680e43f1e51d03cdfe2b8e1837e0e Mon Sep 17 00:00:00 2001 From: gmega Date: Tue, 4 Feb 2025 19:25:26 -0300 Subject: [PATCH] chore: delete redundant test --- benchmarks/codex/tests/test_codex_client.py | 32 --------------------- 1 file changed, 32 deletions(-) delete mode 100644 benchmarks/codex/tests/test_codex_client.py diff --git a/benchmarks/codex/tests/test_codex_client.py b/benchmarks/codex/tests/test_codex_client.py deleted file mode 100644 index f5940af..0000000 --- a/benchmarks/codex/tests/test_codex_client.py +++ /dev/null @@ -1,32 +0,0 @@ -from io import BytesIO - -import pytest -from urllib3.util import parse_url - -from benchmarks.codex.client.async_client import AsyncCodexClientImpl -from benchmarks.core.utils.random import random_data - - -@pytest.fixture -def random_file() -> BytesIO: - b = BytesIO() - random_data(size=2048, outfile=b) - b.seek(0) - return b - - -@pytest.mark.codex_integration -@pytest.mark.asyncio -async def test_should_upload_file(codex_node_1_url: str, random_file): - codex_client = AsyncCodexClientImpl(parse_url(codex_node_1_url)) - cid = await codex_client.upload( - content=random_file, name="dataset-1", mime_type="application/octet-stream" - ) - - assert cid is not None - - manifest = await codex_client.manifest(cid) - - assert manifest.cid == cid - assert manifest.datasetSize == 2048 - assert manifest.mimetype == "application/octet-stream"