Title: Add test class organization guidelines to agent skills by Copilot · Pull Request #1685 · usethis-python/usethis-python · GitHub
Open Graph Title: Add test class organization guidelines to agent skills by Copilot · Pull Request #1685 · usethis-python/usethis-python
X Title: Add test class organization guidelines to agent skills by Copilot · Pull Request #1685 · usethis-python/usethis-python
Description: Agents were creating standalone top-level test classes for backend variants (e.g. TestAddDefaultGroupsPoetry) instead of nesting them inside existing test classes. The agent skills lacked guidance on the project's nested pytest class convention. Added a "Test class organization" section to the usethis-python-test-full-coverage skill covering: Top-level classes: one per function or class under test Nested classes: group by method/operation, scenario/condition, or variant/backend Variant-specific tests: must nest inside existing test classes, not create standalone classes Nesting depth: 2–3 levels max No docstrings: test names are self-documenting Key convention illustrated: # Correct — nest variant inside existing class class TestAddDefaultGroups: class TestPoetry: def test_optional_group(self): ... # Wrong — standalone class class TestAddDefaultGroupsPoetry: def test_optional_group(self): ...
Open Graph Description: Agents were creating standalone top-level test classes for backend variants (e.g. TestAddDefaultGroupsPoetry) instead of nesting them inside existing test classes. The agent skills lacked guidance ...
X Description: Agents were creating standalone top-level test classes for backend variants (e.g. TestAddDefaultGroupsPoetry) instead of nesting them inside existing test classes. The agent skills lacked guidance ...
Opengraph URL: https://github.com/usethis-python/usethis-python/pull/1685
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:50325be0-f3dd-56cf-db8a-4b686219fe03 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | AFC2:EBB89:38B5A9:4D8450:6A51440B |
| html-safe-nonce | 2f95ab67509082ebb37e87742bddf973807fa6bd751efa1bc06a034281594f3c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRkMyOkVCQjg5OjM4QjVBOTo0RDg0NTA6NkE1MTQ0MEIiLCJ2aXNpdG9yX2lkIjoiNTY2ODA5ODIzNTI4NzI5MDg5MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 7ff48e1e144f3e97ba67b67b48606266af0b467cefaf5035bfb95bd33c223c3a |
| hovercard-subject-tag | pull_request:3475100593 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,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/usethis-python/usethis-python/pull/1685/files |
| twitter:image | https://avatars.githubusercontent.com/in/1143301?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/in/1143301?s=400&v=4 |
| og:image:alt | Agents were creating standalone top-level test classes for backend variants (e.g. TestAddDefaultGroupsPoetry) instead of nesting them inside existing test classes. The agent skills lacked guidance ... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | e840f405b2718e8f2d55aafa9ff27dbce17e29d0c253011d05ea0fea3c78baff |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/usethis-python/usethis-python git https://github.com/usethis-python/usethis-python.git |
| octolytics-dimension-user_id | 216362695 |
| octolytics-dimension-user_login | usethis-python |
| octolytics-dimension-repository_id | 842189705 |
| octolytics-dimension-repository_nwo | usethis-python/usethis-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 842189705 |
| octolytics-dimension-repository_network_root_nwo | usethis-python/usethis-python |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | b78565f6aa43cc5323c9935ec11b22cca7bb0a62 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width