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

Add tests before and after packaging #24

Open
dzieciou opened this issue Mar 13, 2021 · 1 comment
Open

Add tests before and after packaging #24

dzieciou opened this issue Mar 13, 2021 · 1 comment

Comments

@dzieciou
Copy link
Owner

(for instance to test access to package resources)

@dzieciou dzieciou changed the title Tests before and after packaging Add tests before and after packaging Mar 13, 2021
@dzieciou
Copy link
Owner Author

I am not sure yet if it is easy to do:

I wouldn't test setup.py at all. It usually is very declarative by nature, and if not, it's fiendishly complex to test as it would require yo to mock away a lot of side-effect laden calls. Instead, if you have to have more complex logic in there (e.g. version extraction from a documentation-file, as I've seen the other day), extract that from setup.py, and develop/test separately. Then import and use.

From: https://stackoverflow.com/questions/28021364/how-to-test-setup-py

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

No branches or pull requests

1 participant