package-structuring

Sub packages and __init__.py

喜欢而已 提交于 2021-02-19 07:38:57
问题 So, this is a set of questions about how to use __init__.py in packages/sub-packages. I have searched, and surprisingly not found a decent answer to this. If I have the following structure (which is just a simplified example obviously): my_package/ __init__.py module1.py my_sub_package/ __init__.py module2.py the contents of module1.py is my_string = 'Hello' the contents of module2.py is my_int = 42 First question: importing multiple modules from a package by default What should be in the _

Do you separate your unit tests from your integration tests? [closed]

老子叫甜甜 提交于 2019-11-29 02:57:26
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 7 years ago . I was just wondering if anyone else just sees integration tests as just a special unit test. I have, however, heard from other