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

Method testAttributes

tests/Copilot.py:46–61  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

44 self.copilot = self.g.get_organization(self.org_name).get_copilot()
45
46 def testAttributes(self):
47 self.assertEqual(self.copilot.org_name, "BeaverSoftware")
48 self.assertEqual(repr(self.copilot), 'Copilot(org_name="BeaverSoftware")')
49
50 seats = list(self.copilot.get_seats())
51 self.assertEqual(len(seats), 1)
52 seat = seats[0]
53 self.assertEqual(seat.created_at, datetime(2010, 7, 9, 6, 10, 6, tzinfo=timezone.utc))
54 self.assertEqual(seat.updated_at, datetime(2012, 5, 26, 11, 25, 48, tzinfo=timezone.utc))
55 self.assertEqual(seat.pending_cancellation_date, None)
56 self.assertEqual(seat.last_activity_at, datetime(2012, 5, 26, 14, 59, 39, tzinfo=timezone.utc))
57 self.assertEqual(seat.last_activity_editor, "vscode/1.0.0")
58 self.assertEqual(seat.organization.login, self.org_name)
59 self.assertEqual(seat.plan_type, "business")
60 self.assertEqual(seat.assignee.login, "pashafateev")
61 self.assertEqual(repr(seat), 'CopilotSeat(assignee=NamedUser(login="pashafateev"))')
62
63 def testGetSeats(self):
64 seats = self.copilot.get_seats()

Callers

nothing calls this directly

Calls 1

get_seatsMethod · 0.80

Tested by

no test coverage detected