Skip to content

Commit

Permalink
Refactor result to return None instead of raising error
Browse files Browse the repository at this point in the history
Signed-off-by: hoangtungdinh <[email protected]>
  • Loading branch information
hoangtungdinh committed Sep 26, 2024
1 parent bfed12f commit 14f2e22
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions tests/test_result.py
Original file line number Diff line number Diff line change
Expand Up @@ -1201,6 +1201,21 @@ def test_result_config_param_copy() -> None:
value=2.0,
)

config.register_checker(
checker_bundle_name="TestCheckerBundle",
checker_id="FirstNonExistingTestChecker",
min_level=IssueSeverity.INFORMATION,
max_level=IssueSeverity.ERROR,
)

config.register_checker_bundle(checker_bundle_name="NonExistingTestCheckerBundle")
config.register_checker(
checker_bundle_name="NonExistingTestCheckerBundle",
checker_id="SecondNonExistingTestChecker",
min_level=IssueSeverity.INFORMATION,
max_level=IssueSeverity.ERROR,
)

result = Result()
result.register_checker_bundle(
build_date="",
Expand Down

0 comments on commit 14f2e22

Please sign in to comment.