Skip to content

Commit

Permalink
Merge branch 'better-test_lookup-error' into deep_equals-improved-2
Browse files Browse the repository at this point in the history
  • Loading branch information
fkiraly committed Oct 22, 2023
2 parents b5b811f + 80fd5b2 commit 761385f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions skbase/lookup/tests/test_lookup.py
Original file line number Diff line number Diff line change
Expand Up @@ -754,27 +754,27 @@ def test_get_package_metadata_returns_expected_results(
cls_str = "SKBASE_PUBLIC_CLASSES_BY_MODULE"

# Verify expected functions are returned
retrieved_funcs = set(tuple(results[module]["functions"].keys()))
retrieved_funcs = set(results[module]["functions"].keys())
expected_funcs = set(module_funcs)

if retrieved_funcs != expected_funcs:
msg = (
"When using get_package_metadata utility, retrieved objects "
f"for {which_str} functions in module '{module}' do not match expected. "
f"for {which_str} functions in module {module} do not match expected. "
f"Expected: {retrieved_funcs}; "
f"retrieved: {expected_funcs}. "
f"Expected functions are stored in {fun_str}, in test_lookup."
)
raise AssertionError(msg)

# Verify expected classes are returned
retrieved_cls = set(tuple(results[module]["classes"].keys()))
retrieved_cls = set(results[module]["classes"].keys())
expected_cls = set(module_classes)

if retrieved_cls != expected_cls:
msg = (
"When using get_package_metadata utility, retrieved objects "
f"for {which_str} classes in module '{module}' do not match expected. "
f"for {which_str} classes in module {module} do not match expected. "
f"Expected: {retrieved_cls}; "
f"retrieved: {expected_cls}. "
f"Expected functions are stored in {cls_str}, in test_lookup."
Expand Down

0 comments on commit 761385f

Please sign in to comment.