MCPcopy
hub / github.com/getsentry/sentry / setUp

Method setUp

src/sentry/testutils/cases.py:2522–2531  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2520
2521class ReleaseCommitPatchTest(APITestCase):
2522 def setUp(self):
2523 user = self.create_user(is_staff=False, is_superuser=False)
2524 self.org = self.create_organization()
2525 self.org.save()
2526
2527 team = self.create_team(organization=self.org)
2528 self.project = self.create_project(name="foo", organization=self.org, teams=[team])
2529
2530 self.create_member(teams=[team], user=user, organization=self.org)
2531 self.login_as(user=user)
2532
2533 @cached_property
2534 def url(self):

Callers

nothing calls this directly

Calls 7

login_asMethod · 0.80
saveMethod · 0.65
create_userMethod · 0.45
create_organizationMethod · 0.45
create_teamMethod · 0.45
create_projectMethod · 0.45
create_memberMethod · 0.45

Tested by

no test coverage detected