Skip to content
Merged
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
6 changes: 3 additions & 3 deletions tests/benchmark/test_run_aiperf.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@


@pytest.fixture
def create_config_data():
def create_config_data(tmp_path):
"""Returns a function with sample basic config, and allows mutation of fields to cover
more cases or add extra fields"""

def _create_config(
batch_name="test_batch",
output_base_dir="test_output",
output_base_dir=str(tmp_path),
model="test-model",
tokenizer="test-tokenizer",
url="http://localhost:8000",
Expand Down Expand Up @@ -125,7 +125,7 @@ def test_init_with_valid_config(self, create_config_file):
assert runner.config_path == config_file
assert isinstance(runner.config, AIPerfConfig)
assert runner.config.batch_name == "test_batch"
assert runner.config.output_base_dir == "test_output"
assert runner.config.output_base_dir == str(config_file.parent)
assert runner.config.base_config.model == "test-model"
assert runner.config.base_config.tokenizer == "test-tokenizer"
assert runner.config.base_config.url == "http://localhost:8000"
Expand Down