MCPcopy Index your code
hub / github.com/PyGithub/PyGithub / testUploadAssetWithName

Method testUploadAssetWithName

tests/GitRelease.py:261–266  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

259 self.tearDownNewRelease()
260
261 def testUploadAssetWithName(self):
262 self.setUpNewRelease()
263 release = self.new_release
264 r = release.upload_asset(self.artifact_path, name="foobar.zip", content_type="application/zip")
265 self.assertEqual(r.name, "foobar.zip")
266 self.tearDownNewRelease()
267
268 def testCreateGitTagAndRelease(self):
269 self.setUpNewRelease()

Callers

nothing calls this directly

Calls 3

setUpNewReleaseMethod · 0.95
tearDownNewReleaseMethod · 0.95
upload_assetMethod · 0.80

Tested by

no test coverage detected