(self)
| 126 | |
| 127 | class 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()) |
nothing calls this directly
no test coverage detected