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

Method testGetOrganizationProjects

tests/Project.py:71–75  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

69 self.assertEqual(project.url, "/projects/42")
70
71 def testGetOrganizationProjects(self):
72 expectedProjects = ["Project1", "Project2", "Project3"]
73 org = self.g.get_organization("PyGithubTestOrg")
74 projects = [proj.name for proj in org.get_projects("open")]
75 self.assertEqual(projects, expectedProjects)
76
77 def testGetRepositoryProjects(self):
78 expectedProjects = ["TestProject", "TestProjectClosed"]

Callers

nothing calls this directly

Calls 2

get_organizationMethod · 0.80
get_projectsMethod · 0.45

Tested by

no test coverage detected