Skip to content

Commit 80df98b

Browse files
committed
Fix and enable CSV output test
Signed-off-by: Jared O'Connell <[email protected]>
1 parent d88cab3 commit 80df98b

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

tests/unit/benchmark/test_output.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@ def test_file_yaml():
8080

8181
mock_path.unlink()
8282

83-
@pytest.mark.skip(reason="CSV fix not merged yet")
8483
@pytest.mark.asyncio
8584
async def test_file_csv():
8685
mock_benchmark = mock_generative_benchmark()
@@ -96,6 +95,7 @@ async def test_file_csv():
9695
rows = list(reader)
9796

9897
assert "Type" in headers
98+
assert "Profile" in headers
9999
assert len(rows) == 1
100100

101101
mock_path.unlink()

tests/unit/mock_benchmark.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,11 @@ def mock_generative_benchmark() -> GenerativeBenchmark:
7676
),
7777
benchmarker=BenchmarkerDict(
7878
profile=SynchronousProfile.create("synchronous", rate=None),
79-
requests={},
79+
requests={
80+
"attributes": {
81+
"data": "prompt_tokens=256,output_tokens=128",
82+
},
83+
},
8084
backend={},
8185
environment={},
8286
aggregators={},

0 commit comments

Comments
 (0)