-
Notifications
You must be signed in to change notification settings - Fork 9
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
2021.4.29: Unable to run tests (AttributeError: module 'pytest' has no attribute 'helpers') #10
Comments
…4.29. Disable most tests, as pytest is unable to pickup the plugin in check(): saltstack/pytest-helpers-namespace#10 git-svn-id: file:///srv/repos/svn-community/svn@964697 9fca08f4-af9d-4005-b8df-a31f2cc04f65
…4.29. Disable most tests, as pytest is unable to pickup the plugin in check(): saltstack/pytest-helpers-namespace#10 git-svn-id: file:///srv/repos/svn-community/svn@964697 9fca08f4-af9d-4005-b8df-a31f2cc04f65
I got the same problem with mypy after upgrading mypy from I would expect such an error if the python package would not be installed, but it is clearly installed. |
The way the plugin makes all of this magic work is by running some code early enough. Don't know why that's happening, though I'm going to push some changes and let's see if it solves the issue. |
Could you please test the latest version and report back to see if it's still an issue? |
Also, are you setting |
@s0undt3ch Thanks a lot! 2021.12.29 works as expected with all tests! :) |
Awesome! |
Hi! When packaging 2021.4.29 I attempted to run the tests. Unfortunately eight out of nine fail due to the error in the issue title.
After
python setup.py build
I install the package to a temporary location, so that it may be picked up by pytest (by modifying$PYTHONPATH
before running pytest).Full build log:
python-pytest-helpers-namespace-2021.4.29-build.log
As I have a few other pytest plugins/extensions that I'm able to test this way, I'm currently unsure how to fix this. Maybe you have an idea?
The text was updated successfully, but these errors were encountered: