Skip to content

Commit

Permalink
Add test to new get all methods
Browse files Browse the repository at this point in the history
Signed-off-by: patrickpa <[email protected]>
  • Loading branch information
patrickpa committed Aug 21, 2024
1 parent 6e83388 commit bfb98c3
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/test_configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,3 +196,13 @@ def test_config_file_parse_order_independence() -> None:
assert len(config_ordered._configuration.params) == len(
config_unordered._configuration.params
)


def test_get_all_methods() -> None:
config = Configuration()
config.load_from_file(os.path.join(TEST_DATA_BASE_PATH, "unordered_config.xml"))

assert len(config._configuration.reports) == len(config.get_all_report_modules())
assert len(config._configuration.checker_bundles) == len(
config.get_all_checker_bundles()
)

0 comments on commit bfb98c3

Please sign in to comment.