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

ERROR collecting tests #115

Closed
FilippoGuarda opened this issue Oct 19, 2018 · 3 comments
Closed

ERROR collecting tests #115

FilippoGuarda opened this issue Oct 19, 2018 · 3 comments

Comments

@FilippoGuarda
Copy link

running python3 -m pytest
i get this output
ImportError while importing test module '/home/watch/gitprojects/shallow-backup/tests/test_copies.py'. Hint: make sure your test modules/packages have valid Python names. Traceback: tests/test_copies.py:4: in <module> from shallow_backup import _copy_file, _copy_dir shallow_backup.py:2: in <module> import git E ModuleNotFoundError: No module named 'git'

@alichtman
Copy link
Owner

alichtman commented Oct 19, 2018

ModuleNotFoundError: No module named 'git'

You're not working in the virtual environment with the correct dependencies.

  1. Pull from master with $ git pull origin master
  2. $ pipenv shell to launch a pipenv subshell
  3. $ pipenv install to install the dependencies

Let me know if this doesn't fix the issue.

@FilippoGuarda
Copy link
Author

okay, issue resolved, my bad

@alichtman
Copy link
Owner

All good, I've made that same mistake before.

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

2 participants