MCPcopy Create free account
hub / github.com/OpenHands/OpenHands / setUp

Method setUp

enterprise/tests/unit/test_github_view.py:172–185  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

170 """Test org routing for GitHub resolver conversations."""
171
172 def setUp(self):
173 self.user_data = UserData(
174 user_id=123, username='testuser', keycloak_user_id='test-keycloak-id'
175 )
176 self.raw_payload = Message(
177 source=SourceType.GITHUB,
178 message={
179 'payload': {
180 'action': 'opened',
181 'issue': {'number': 42},
182 }
183 },
184 )
185 self.resolved_org_id = UUID('aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa')
186
187 def _create_github_issue(self):
188 return GithubIssue(

Callers

nothing calls this directly

Calls 2

UserDataClass · 0.90
MessageClass · 0.90

Tested by

no test coverage detected