Skip to content

Commit af790ee

Browse files
committed
fix: Changed bad_recipe fixture/test wording
Signed-off-by: Brandon Groth <[email protected]>
1 parent fae3ec5 commit af790ee

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

tests/models/conftest.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -814,10 +814,10 @@ def save_list(request):
814814
"""
815815
return request.param
816816

817-
bad_recipe_params = ["qat_int7", "pzq_int8"]
817+
wrong_recipe_name_params = ["qat_int7", "pzq_int8"]
818818

819-
@pytest.fixture(scope="session", params=bad_recipe_params)
820-
def bad_recipe(request):
819+
@pytest.fixture(scope="session", params=wrong_recipe_name_params)
820+
def wrong_recipe_name(request):
821821
"""
822822
Get a bad recipe json file name in fms_mo/recipes
823823

tests/models/test_qmodelprep.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,17 +53,17 @@ def test_model_quantized(
5353
with pytest.raises(RuntimeError):
5454
qmodel_prep(model_quantized, sample_input_fp32, config_fp32)
5555

56-
def test_bad_recipe(
57-
bad_recipe: str,
56+
def test_recipe_not_present(
57+
wrong_recipe_name: str,
5858
):
5959
"""
6060
Test if giving a bad recipe .json file name results in a ValueError.
6161
6262
Args:
63-
bad_recipe (str): Bad .json file name
63+
wrong_recipe_name (str): Wrong .json file name
6464
"""
6565
with pytest.raises(ValueError):
66-
qconfig_init(recipe=bad_recipe)
66+
qconfig_init(recipe=wrong_recipe_name)
6767

6868

6969
def test_double_qmodel_prep_assert(

0 commit comments

Comments
 (0)