Skip to content

Commit

Permalink
adjust test
Browse files Browse the repository at this point in the history
  • Loading branch information
huchenlei committed May 6, 2024
1 parent 2382520 commit ff7979e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/web_api/generation_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,12 +87,12 @@ def test_invalid_param(gen_type, param_name):
f"test_invalid_param{(gen_type, param_name)}",
gen_type,
payload_overrides={},
unit_overrides={param_name: -1},
unit_overrides={param_name: -100},
input_image=girl_img,
).exec()
assert log_context.is_in_console_logs(
[
f"[canny.{param_name}] Invalid value(-1), using default value",
f"[canny.{param_name}] Invalid value(-100), using default value",
]
)

Expand Down

0 comments on commit ff7979e

Please sign in to comment.