Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python API: add_new_download return None regression test #1933

Conversation

evan-goode
Copy link
Member

DownloadCallbacks.add_new_download can now return either None or an int. This adds a regression test to check that add_new_download can still return None.

@evan-goode evan-goode requested a review from jrohel December 5, 2024 18:13
@jrohel jrohel self-assigned this Dec 12, 2024
Copy link
Contributor

@jrohel jrohel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the unit test.

Please remove the unnecessary test_instance class variable.

test/python3/libdnf5/repo/test_package_downloader.py Outdated Show resolved Hide resolved
test/python3/libdnf5/repo/test_package_downloader.py Outdated Show resolved Hide resolved
DownloadCallbacks.add_new_download can now return either None or an int.
This adds a regression test to check that add_new_download can still return
None.
@evan-goode evan-goode force-pushed the evan-goode/add_new_download_None_test branch from fc4854d to eb120c5 Compare December 13, 2024 16:31
@evan-goode
Copy link
Member Author

Done and rebased.

@evan-goode evan-goode requested a review from jrohel December 13, 2024 16:32
@jrohel
Copy link
Contributor

jrohel commented Dec 16, 2024

Thanks

@jrohel jrohel added this pull request to the merge queue Dec 16, 2024
Merged via the queue into rpm-software-management:main with commit b790c1e Dec 16, 2024
17 checks passed
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.

2 participants