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
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ dependencies = [
"tornado>=6.5.5", # Pinning version to address vulnerabilities GHSA-78cv-mqj4-43f7, CVE-2026-31958
"werkzeug>=3.1.6", # Pinning version to address vulnerabilities GHSA-hgf8-39gv-g3f2, CVE-2026-21860, CVE-2026-27199
"virtualenv>=20.36.1", # TODO: Update to >=20.36.2 when released to address CVE-2026-22702
"tornado>=6.5.5", # Pinning version to address vulnerabilities GHSA-78cv-mqj4-43f7, CVE-2026-31958
"pillow>=12.1.1", # Pinning version to address vulnerability CVE-2026-25990
"pip>=26.0", # Pinning version to address vulnerability CVE-2026-1703
"absl-py>=2.3.1",
"python-dotenv>=1.0.0",
"func-timeout>=4.3.5",
Expand Down
7 changes: 4 additions & 3 deletions tests/e2e/test_pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ async def _process_row(self, row: T) -> U:


@pytest.mark.asyncio
async def test_pipeline():
async def test_pipeline(tmp_path):
cache_dir = os.path.join(TEST_DATA_DIR, "cache", "pipeline_test")
if os.path.exists(cache_dir):
shutil.rmtree(cache_dir)
Expand All @@ -75,8 +75,9 @@ async def test_pipeline():
pipeline = Pipeline(
"test_pipeline", os.path.join(TEST_DIR, "cache"), [Plus2(), Times5()]
)
write_json_raw("test.json", [{"idx": "i1", "a": 1}])
data = read_json("test.json", DataModel)
test_file = str(tmp_path / "test.json")
write_json_raw(test_file, [{"idx": "i1", "a": 1}])
data = read_json(test_file, DataModel)

result = await pipeline.run(data)

Expand Down
7 changes: 4 additions & 3 deletions tests/e2e/test_processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,15 @@ async def _process_row(self, row: T) -> U:


@pytest.mark.asyncio
async def test_processor():
async def test_processor(tmp_path):
cache_dir = os.path.join(TEST_DATA_DIR, "cache", "processor_test")
if os.path.exists(cache_dir):
shutil.rmtree(cache_dir)
os.makedirs(cache_dir, exist_ok=True)

write_json_raw("test.json", [{"idx": "i1", "a": 1}])
data = read_json("test.json", DataModel)
test_file = str(tmp_path / "test.json")
write_json_raw(test_file, [{"idx": "i1", "a": 1}])
data = read_json(test_file, DataModel)
p = PlusPlusProcessor()
p.set_cache_file(cache_dir, 1)
method = p._process_row
Expand Down
Loading
Loading