(barerepo: Repository)
| 135 | |
| 136 | |
| 137 | def test_modify_commit(barerepo: Repository) -> None: |
| 138 | message = 'New commit.\n\nMessage.\n' |
| 139 | committer = ('John Doe', 'jdoe@example.com', 12346) |
| 140 | author = ('Jane Doe', 'jdoe2@example.com', 12345) |
| 141 | |
| 142 | commit = barerepo[COMMIT_SHA] |
| 143 | |
| 144 | with pytest.raises(AttributeError): |
| 145 | setattr(commit, 'message', message) |
| 146 | with pytest.raises(AttributeError): |
| 147 | setattr(commit, 'committer', committer) |
| 148 | with pytest.raises(AttributeError): |
| 149 | setattr(commit, 'author', author) |
| 150 | with pytest.raises(AttributeError): |
| 151 | setattr(commit, 'tree', None) |
| 152 | with pytest.raises(AttributeError): |
| 153 | setattr(commit, 'parents', None) |
| 154 | |
| 155 | |
| 156 | def test_amend_commit_metadata(barerepo: Repository) -> None: |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…