Title: Add test for src layout inference when setup.py is present by Copilot · Pull Request #1888 · usethis-python/usethis-python · GitHub
Open Graph Title: Add test for src layout inference when setup.py is present by Copilot · Pull Request #1888 · usethis-python/usethis-python
X Title: Add test for src layout inference when setup.py is present by Copilot · Pull Request #1888 · usethis-python/usethis-python
Description: No test covered the case where both a src/ directory and setup.py coexist — leaving a gap in the layout detection coverage. Changes tests/usethis/_integrations/project/test_layout.py: Added test_has_src_and_setup_py_present to TestGetSourceDirStr, asserting that get_source_dir_str() returns "src" when both src/ and setup.py are present: def test_has_src_and_setup_py_present(self, tmp_path: Path): (tmp_path / "src").mkdir() (tmp_path / "setup.py").touch() with change_cwd(tmp_path): result = get_source_dir_str() assert result == "src" The implementation already handles this correctly; this test pins the behaviour explicitly.
Open Graph Description: No test covered the case where both a src/ directory and setup.py coexist — leaving a gap in the layout detection coverage. Changes tests/usethis/_integrations/project/test_layout.py: Added test_h...
X Description: No test covered the case where both a src/ directory and setup.py coexist — leaving a gap in the layout detection coverage. Changes tests/usethis/_integrations/project/test_layout.py: Added test_h...
Opengraph URL: https://github.com/usethis-python/usethis-python/pull/1888
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:1c6e3f54-252a-8ed6-3336-cec792d99088 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | CC32:3C007C:292794:3B7F9E:6A4E0052 |
| html-safe-nonce | 9c24266545577fffe50c8b4b90fef787765f01bc3df1d529949208e2999ec26f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQzMyOjNDMDA3QzoyOTI3OTQ6M0I3RjlFOjZBNEUwMDUyIiwidmlzaXRvcl9pZCI6IjE5ODgyMjAxMzc4MjQ0NTI2OTAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 1c1c19724e434a88a67b70f1d09600122b0956b863dcc1a668620569887ce46f |
| hovercard-subject-tag | pull_request:3500677639 |
| 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/1888/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 | No test covered the case where both a src/ directory and setup.py coexist — leaving a gap in the layout detection coverage. Changes tests/usethis/_integrations/project/test_layout.py: Added test_h... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | df0492960db29b4938cb72070351d6b1d0c6c0767b27ceb8394bbf4fcc0223c6 |
| 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 |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 52bde38e24398476f8eb1e0760c81346c6a00812 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width