-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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 Tooling] Eliminate spurious Pytest warnings about unregistered marks #2745
Comments
This comment has been minimized.
This comment has been minimized.
Taking a second look, there is the appropriate |
Hi @jaywritescode, Thanks for logging this issue. The warnings should vanish if you place the Additionally, you can run pytest with |
Flagging this as a bug, since we haven't (yet) figured out how to get this to download with the CLI. |
After discussing this with @ErikSchierboom, the ultimate resolution will be to place our However, that download behavior is not yet supported, so in the interim, we will have setup notes/instructions for students to download the file from the repo to copy into their root |
via PR #2806, made a copy of the |
Linking closed issue #2539, as the documentation is still not ideal around this issue. Will be opening separate issues for updating documentation to make it clearer what needs to happen for students to set this up properly. |
* added the pytest invokation pytest -o markers=task to the "running tests" sections of exercises/shared/test.md and docs/TESTS.md * updated and clarified INSTALLATION.md * updated and added new resources to LEARNING.md * updated and added new resources to RESOURCES.md * overhauled TOOLS.md and added new editors and links
* added the pytest invokation pytest -o markers=task to the "running tests" sections of exercises/shared/test.md and docs/TESTS.md * updated and clarified INSTALLATION.md * updated and added new resources to LEARNING.md * updated and added new resources to RESOURCES.md * overhauled TOOLS.md and added new editors and links
* added the pytest invokation pytest -o markers=task to the "running tests" sections of exercises/shared/test.md and docs/TESTS.md * updated and clarified INSTALLATION.md * updated and added new resources to LEARNING.md * updated and added new resources to RESOURCES.md * overhauled TOOLS.md and added new editors and links
@ErikSchierboom -- tagging you because we discussed a while ago having the I have updated our testing documentation, and that has helped with this issue a lot -- but would also love to have the config file available via CLI in |
Yeah, sorry, that has not yet been implemented. I'll let you know when I get to that (such a huge list of TODOs :D) |
Tagging this as officially "on hold" for the auto-download option. Since we've changed the docs to clarify, this feels somewhat lower-priority at this stage. |
When running the test suites for a Python exercise in a local environment, Pytest generates a set of warnings because each of the tests is annotated (decorated) with
@pytest.mark.task
. Becausetask
isn't registered, the Pytest output includes lines such asThis output is noisy and of little value to the developer.
Would it be reasonable to add a
pytest.ini
orpyproject.toml
file as described in the link above to each of the exercises?The text was updated successfully, but these errors were encountered: