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

All test subtargets fail due to import error #622

Closed
eloquence opened this issue Oct 14, 2020 · 1 comment · Fixed by #635
Closed

All test subtargets fail due to import error #622

eloquence opened this issue Oct 14, 2020 · 1 comment · Fixed by #635
Labels

Comments

@eloquence
Copy link
Member

The Makefile provides several convenient sub-targets: test-proxy, test-whonix, test-gpg, test-app, test-base. However, they all fail with:

ImportError: No module named 'base'
@eloquence eloquence added the bug label Oct 14, 2020
@eloquence
Copy link
Member Author

eloquence commented Oct 14, 2020

As far as I can tell, to fix this, we can either use the discover subcommand throughout, e.g.

python3 -m unittest discover tests/ -v -p test_proxy_vm*

Or we can alter the import logic in the tests themselves. Using discover throughout seems like the simpler fix to me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant