-
Notifications
You must be signed in to change notification settings - Fork 47
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
pytest.ini issue #1312
Comments
Tests (mostly) work when I remove that path. |
The autoindent plugin is the only file that contains doctests, so we tell pytest to find tests from it too (by default it only looks in Why do you have Porcupine installed into your development venv? It is unnecessary and apparently causes problems too. |
I told pytest to find tests in the diff --git a/pytest.ini b/pytest.ini
index 481e16da..b9c2c03a 100644
--- a/pytest.ini
+++ b/pytest.ini
@@ -1,7 +1,7 @@
[pytest]
# why we disable nose plugin: https://github.com/pytest-dev/pytest/issues/10825
addopts = --doctest-modules --capture=no -p no:nose
-testpaths = porcupine/plugins/autoindent.py tests/
+testpaths = porcupine/ tests/
markers = pastebin_test
# uncomment this if you dare... i like how pytest hides the shittyness When I run
The problem is that pytest is trying to import |
Could we put a |
Adding |
Thanks for bringing this up! Of course, I don't like things that hard-code an oddly specific thing without any explanation :) |
What is this line for?
porcupine/pytest.ini
Line 4 in c080f68
Specifically the
porcupine/plugins/autoindent.py
portion. It causes an error for me when trying to run tests:The text was updated successfully, but these errors were encountered: