Skip to content

MNT: reduce scope of test_get_package_metadata_returns_expected_results to mock_package#516

Open
shourya1419-netizen wants to merge 1 commit intosktime:mainfrom
shourya1419-netizen:fix-package-metadata-test
Open

MNT: reduce scope of test_get_package_metadata_returns_expected_results to mock_package#516
shourya1419-netizen wants to merge 1 commit intosktime:mainfrom
shourya1419-netizen:fix-package-metadata-test

Conversation

@shourya1419-netizen
Copy link

@shourya1419-netizen shourya1419-netizen commented Mar 5, 2026

What does this PR do?

Reduces the scope of test_get_package_metadata_returns_expected_results so that it runs against the mock_package used in lookup tests instead of the entire skbase package.

Why is this needed?

Currently the test relies on the full skbase module list. Adding new modules or classes to skbase can cause unrelated failures in this test because expected module/function lists are hardcoded.

What is changed?

1)The test now calls get_package_metadata on skbase.lookup.tests.mock_package.

2)Removed dependency on SKBASE_MODULES and SKBASE_PUBLIC_MODULES.

3)Assertions now validate the structure of returned metadata instead of comparing against global module constants.

Result

This makes the test independent of unrelated changes in skbase modules while still verifying that get_package_metadata correctly returns functions and classes.

fixes #114

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Reducing scope of test_get_package_metadata_returns_expected_results?

1 participant