Title: [Pytest Tooling] Eliminate spurious Pytest warnings about unregistered marks · Issue #2745 · exercism/python · GitHub
Open Graph Title: [Pytest Tooling] Eliminate spurious Pytest warnings about unregistered marks · Issue #2745 · exercism/python
X Title: [Pytest Tooling] Eliminate spurious Pytest warnings about unregistered marks · Issue #2745 · exercism/python
Description: 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. Because task isn't registered, the Pytest output inc...
Open Graph Description: 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. Because task...
X Description: 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. Because task...
Opengraph URL: https://github.com/exercism/python/issues/2745
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Pytest Tooling] Eliminate spurious Pytest warnings about unregistered marks","articleBody":"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`. Because `task` isn't [registered](https://docs.pytest.org/en/latest/how-to/mark.html#registering-marks), the Pytest output includes lines such as\r\n```\r\ndicts_test.py:50\r\n /Users/xyz/Exercism/python/inventory-management/dicts_test.py:50: PytestUnknownMarkWarning: Unknown pytest.mark.task - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/mark.html\r\n @pytest.mark.task(taskno=4)\r\n```\r\nThis output is noisy and of little value to the developer.\r\n\r\nWould it be reasonable to add a `pytest.ini` or `pyproject.toml` file as described in the link above to each of the exercises?","author":{"url":"https://github.com/jaywritescode","@type":"Person","name":"jaywritescode"},"datePublished":"2021-11-09T23:55:40.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":10},"url":"https://github.com/2745/python/issues/2745"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:719029b6-3b41-0a6b-5bcb-eb5bb94c4e81 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A568:DD5F6:1D20757:28B9163:69693195 |
| html-safe-nonce | e2ce302d796ca5f8507bd92f1b3c52df7f393911f3d118eaa27d98066aac34b8 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNTY4OkRENUY2OjFEMjA3NTc6MjhCOTE2Mzo2OTY5MzE5NSIsInZpc2l0b3JfaWQiOiIzNDQ0Nzc3NDM5MTkzNTQzMDYxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 402717fd9d20bc97bafda15c94fb8129381fefbc1facc6995ed0652c77bd9598 |
| hovercard-subject-tag | issue:1049246826 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/exercism/python/2745/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e5ee0339a085284c1e4d1919875664f605dc88af7fd57d42bb36af1a3d882318/exercism/python/issues/2745 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e5ee0339a085284c1e4d1919875664f605dc88af7fd57d42bb36af1a3d882318/exercism/python/issues/2745 |
| og:image:alt | 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. Because task... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jaywritescode |
| hostname | github.com |
| expected-hostname | github.com |
| None | 54182691a21263b584d2e600b758e081b0ff1d10ffc0d2eefa51cf754b43b51d |
| turbo-cache-control | no-preview |
| go-import | github.com/exercism/python git https://github.com/exercism/python.git |
| octolytics-dimension-user_id | 5624255 |
| octolytics-dimension-user_login | exercism |
| octolytics-dimension-repository_id | 17274389 |
| octolytics-dimension-repository_nwo | exercism/python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 17274389 |
| octolytics-dimension-repository_network_root_nwo | exercism/python |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | d69ac0477df0f87da03b8b06cebd187012d7a930 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width