Skip to content

Commit 31b0416

Browse files
committed
fix misspelling and error test
Signed-off-by: Anh Uong <[email protected]>
1 parent bfb8a8f commit 31b0416

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

plugins/framework/src/fms_acceleration/model_patcher.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ def __post_init__(self):
188188
):
189189
raise ValueError(
190190
f"Rule '{self.rule_id}' must only have at most one of forward, "
191-
"foward builder, or import_and_maybe_reload, specified."
191+
"forward builder, or import_and_maybe_reload, specified."
192192
)
193193

194194
if self.import_and_maybe_reload is not None and self.trigger is not None:

plugins/framework/tests/test_model_patcher_helpers.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -254,12 +254,12 @@ def test_combine_mp_triggers_produces_correct_output(
254254

255255

256256
def test_mp_rule_raises_error_when_arguments_incorrectly_configured():
257-
"Ensure MP rule is throws appropriate error when wrong argument combinations are passed"
257+
"Ensure MP rule throws appropriate error when wrong argument combinations are passed"
258258
# Test mp rule construction raises with multiple arguments
259259
with pytest.raises(
260260
ValueError,
261-
match="must only have only one of forward, "
262-
"foward builder, or import_and_maybe_reload, specified.",
261+
match="must only have at most one of forward, "
262+
"forward builder, or import_and_maybe_reload, specified.",
263263
):
264264
ModelPatcherRule(
265265
rule_id=DUMMY_RULE_ID,

0 commit comments

Comments
 (0)