Title: Remove unittest code from non-test code · Issue #790 · gitpython-developers/GitPython · GitHub
Open Graph Title: Remove unittest code from non-test code · Issue #790 · gitpython-developers/GitPython
X Title: Remove unittest code from non-test code · Issue #790 · gitpython-developers/GitPython
Description: I see these imports of unittest in GitPython/git/objects/submodule/base.py Line 6 in a8591a0 from unittest import SkipTest GitPython/git/util.py Line 17 in f3265bd from unittest import SkipTest I generally think that test code should not...
Open Graph Description: I see these imports of unittest in GitPython/git/objects/submodule/base.py Line 6 in a8591a0 from unittest import SkipTest GitPython/git/util.py Line 17 in f3265bd from unittest import SkipTest I g...
X Description: I see these imports of unittest in GitPython/git/objects/submodule/base.py Line 6 in a8591a0 from unittest import SkipTest GitPython/git/util.py Line 17 in f3265bd from unittest import SkipTest I g...
Opengraph URL: https://github.com/gitpython-developers/GitPython/issues/790
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Remove unittest code from non-test code","articleBody":"I see these imports of unittest in\r\n- https://github.com/gitpython-developers/GitPython/blob/a8591a094a768d73e6efb5a698f74d354c989291/git/objects/submodule/base.py#L6\r\n- https://github.com/gitpython-developers/GitPython/blob/f3265bd8beb017890699d093586126ff8af4a3fe/git/util.py#L17\r\n\r\nI generally think that test code should not be built into the business logic. Is there a reason why using a skipIf decorator is insufficient?","author":{"url":"https://github.com/mwatts15","@type":"Person","name":"mwatts15"},"datePublished":"2018-08-23T02:33:58.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/790/GitPython/issues/790"}
| 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:291d96a2-fd6a-86a6-2080-570cb9de3665 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B956:31E362:E9EDE4:13A4814:6969A0F4 |
| html-safe-nonce | c129483e69191473cde1863f75d29fd16f67985fa04d58b33c6ecf59a481ad55 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCOTU2OjMxRTM2MjpFOUVERTQ6MTNBNDgxNDo2OTY5QTBGNCIsInZpc2l0b3JfaWQiOiI5OTc0MjAzODE0NzI2NjE3NDgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | fc81860f9bce3bff0a681805f6fc7b0e591fcc78e74e1d2daa4f6a6a1a9eca01 |
| hovercard-subject-tag | issue:353198060 |
| 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/gitpython-developers/GitPython/790/issue_layout |
| twitter:image | https://opengraph.githubassets.com/2f6edf1ec83ddeac3f1cb6d6cceadf558a51b137c3b80637f5b67031c4eea943/gitpython-developers/GitPython/issues/790 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/2f6edf1ec83ddeac3f1cb6d6cceadf558a51b137c3b80637f5b67031c4eea943/gitpython-developers/GitPython/issues/790 |
| og:image:alt | I see these imports of unittest in GitPython/git/objects/submodule/base.py Line 6 in a8591a0 from unittest import SkipTest GitPython/git/util.py Line 17 in f3265bd from unittest import SkipTest I g... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mwatts15 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 24c4c97a2d520cb286b35e1a4c22d7a4df3c26a2fa28dd7cdf0e65db327b4de7 |
| turbo-cache-control | no-preview |
| go-import | github.com/gitpython-developers/GitPython git https://github.com/gitpython-developers/GitPython.git |
| octolytics-dimension-user_id | 503709 |
| octolytics-dimension-user_login | gitpython-developers |
| octolytics-dimension-repository_id | 1126087 |
| octolytics-dimension-repository_nwo | gitpython-developers/GitPython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1126087 |
| octolytics-dimension-repository_network_root_nwo | gitpython-developers/GitPython |
| 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 | 124667f43168afb6c9c03b7c02eb5b1d2e1be3d9 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width