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

Method testCreateRepoWithAllArguments

tests/Organization.py:436–458  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

434 self.assertTrue(repo.has_pages)
435
436 def testCreateRepoWithAllArguments(self):
437 team = self.org.get_team(141496)
438 repo = self.org.create_repo(
439 name="TestPyGithub2",
440 description="Repo created by PyGithub",
441 homepage="http://foobar.com",
442 private=False,
443 visibility="public",
444 has_issues=False,
445 has_projects=False,
446 has_wiki=False,
447 has_downloads=False,
448 team_id=team.id,
449 allow_update_branch=True,
450 allow_squash_merge=False,
451 allow_merge_commit=False,
452 allow_rebase_merge=True,
453 delete_branch_on_merge=False,
454 )
455 self.assertEqual(repo.url, "https://api.github.com/repos/BeaverSoftware/TestPyGithub2")
456 self.assertTrue(repo.allow_update_branch)
457 self.assertFalse(repo.has_wiki)
458 self.assertFalse(repo.has_pages)
459
460 def testCreateRepositoryWithAutoInit(self):
461 repo = self.org.create_repo(name="TestPyGithub", auto_init=True, gitignore_template="Python")

Callers

nothing calls this directly

Calls 2

get_teamMethod · 0.80
create_repoMethod · 0.45

Tested by

no test coverage detected