-
-
Notifications
You must be signed in to change notification settings - Fork 108
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
Test can't be run without installed package #397
Comments
Hello, testing instructions are at https://github.com/pylast/pylast#testing So for example: python3 -m pip install -e ".[tests]"
pytest What exactly did you run? |
@hugovk but this is installing of packages ;) |
Yes, it installs dependencies required for running the tests, plus also it's good practice to test against your installed package instead of one that happens to be local: Another option: |
I’m just try to fix tests inside MacPorts port file: macports/macports-ports#14513 If it fine for you I can try to make small PR which uses n/a as version when it can’t load package info. |
Here a naive approach which prevents a fail if this code is used without installing. Fixes: pylast#397
An example of very similar issue and changes: pycountry/pycountry#52 |
Here a naive approach which prevents a fail if this code is used without installing. Fixes: pylast#397
What did you do?
Try to run tests without installing any version of a package.
What did you expect to happen?
It should works.
What actually happened?
It fails as:
What versions are you using?
The text was updated successfully, but these errors were encountered: