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

unittest does not find tests as it confuses tests/unit for a module #2

Open
IshaanDesai opened this issue Oct 5, 2022 · 0 comments
Labels
question Further information is requested

Comments

@IshaanDesai
Copy link
Contributor

IshaanDesai commented Oct 5, 2022

In some cases it is observed that unittest is unable to reach the test even when the file path is specified to it in the following form:

python -m unittest tests/unit/test_diffusion2d_functions.py

It is unclear why this happens, but a possible solution is to add a blank __init__.py file in the tests/ folder.

@IshaanDesai IshaanDesai added the question Further information is requested label Oct 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant