Title: Trim "mypy/tests/testX.py::XDataSuite::" from test items · Issue #15260 · python/mypy · GitHub
Open Graph Title: Trim "mypy/tests/testX.py::XDataSuite::" from test items · Issue #15260 · python/mypy
X Title: Trim "mypy/tests/testX.py::XDataSuite::" from test items · Issue #15260 · python/mypy
Description: We can rewrite test collection so that e.g. test-data/unit/check-abstract.test is deemed the test node, rather than mypy/test/testcheck.py::CheckTestSuite::check-abstract.test. This would improve the ergonomics of test invocation, so tha...
Open Graph Description: We can rewrite test collection so that e.g. test-data/unit/check-abstract.test is deemed the test node, rather than mypy/test/testcheck.py::CheckTestSuite::check-abstract.test. This would improve t...
X Description: We can rewrite test collection so that e.g. test-data/unit/check-abstract.test is deemed the test node, rather than mypy/test/testcheck.py::CheckTestSuite::check-abstract.test. This would improve t...
Opengraph URL: https://github.com/python/mypy/issues/15260
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Trim \"mypy/tests/testX.py::XDataSuite::\" from test items","articleBody":"We can rewrite test collection so that e.g. `test-data/unit/check-abstract.test` is deemed the test node, rather than `mypy/test/testcheck.py::CheckTestSuite::check-abstract.test`. This would improve the ergonomics of test invocation, so that one could simply invoke e.g.\r\n```\r\npytest test-data/unit/check-abstract.test\r\n```\r\n\r\nTechnically, we'd follow the recipe in [Working with non-python tests](https://docs.pytest.org/en/7.1.x/example/nonpython.html). Each data suite would implement a `pytest_collect_file`. However, it would also mean we'd need a \"registry\" of all data suites, since the collection mechanism would need to \"ask\" all data suites whether they handle the file (in some cases, multiple data suites could each emit items for the same file & test -- see `test_name_suffix`).\r\n\r\nThe non-data-suite tests (e.g. those deriving from `TestCase`) would remain unaffected.","author":{"url":"https://github.com/ikonst","@type":"Person","name":"ikonst"},"datePublished":"2023-05-17T17:29:54Z","url":"https://github.com/python/mypy/issues/15260"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| 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:ab527bad-df24-0355-bf50-f750a28cf40a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AEF4:24D752:6F3A77:9506B5:6B003852 |
| html-safe-nonce | 31f34caf001648566bae7610d29dd82b6604d9acf47e7408fa17e8070275052a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRUY0OjI0RDc1Mjo2RjNBNzc6OTUwNkI1OjZCMDAzODUyIiwidmlzaXRvcl9pZCI6IjM3MjI5MTQxMjI1MzUyODY4NjYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 33fe4022e65043d8df34f50095bc83d3deb65e6ad1e156bdc0e0ea5705586410 |
| hovercard-subject-tag | issue:1714343206 |
| 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/python/mypy/15260/issue_layout |
| twitter:image | https://opengraph.githubassets.com/70da144cb3b95601f7834d30472bcccda48426a741a3814d3daa29cb60d4aaf8/python/mypy/issues/15260 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/70da144cb3b95601f7834d30472bcccda48426a741a3814d3daa29cb60d4aaf8/python/mypy/issues/15260 |
| og:image:alt | We can rewrite test collection so that e.g. test-data/unit/check-abstract.test is deemed the test node, rather than mypy/test/testcheck.py::CheckTestSuite::check-abstract.test. This would improve t... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ikonst |
| hostname | github.com |
| expected-hostname | github.com |
| None | 7d0829bbde9e48b2486cb5dd6d147896eb01d32134627091f818958a935ef3f0 |
| turbo-cache-control | no-preview |
| go-import | github.com/python/mypy git https://github.com/python/mypy.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 7053637 |
| octolytics-dimension-repository_nwo | python/mypy |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 7053637 |
| octolytics-dimension-repository_network_root_nwo | python/mypy |
| 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 | f3f3a43ca095cdea3abbb394112e971f9fdb94fa |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width