MCPcopy Create free account
hub / github.com/getsentry/sentry / setUp

Method setUp

tests/sentry/utils/test_committers.py:128–148  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

126
127class GetCommitFileChangesTestCase(CommitTestCase):
128 def setUp(self) -> None:
129 super().setUp()
130 commit_1 = self.create_commit()
131 commit_2 = self.create_commit()
132 commit_3 = self.create_commit()
133 file_change_1 = self.create_commitfilechange(
134 filename="hello/app.py", type="A", commit=commit_1
135 )
136 file_change_2 = self.create_commitfilechange(
137 filename="hello/templates/app.html", type="A", commit=commit_2
138 )
139 file_change_3 = self.create_commitfilechange(
140 filename="hello/app.py", type="M", commit=commit_3
141 )
142
143 # ensuring its not just getting all filechanges
144 self.create_commitfilechange(filename="goodbye/app.py", type="A")
145
146 self.file_changes = [file_change_1, file_change_2, file_change_3]
147 self.commits = [commit_1, commit_2, commit_3]
148 self.path_name_set = {file_change.filename for file_change in self.file_changes}
149
150 def test_no_paths(self) -> None:
151 assert [] == _get_commit_file_changes(self.commits, set())

Callers

nothing calls this directly

Calls 3

setUpMethod · 0.45
create_commitMethod · 0.45

Tested by

no test coverage detected