Test get_filenames_in_commit returns filenames from the last commit.
(util: UtilFixture)
| 384 | |
| 385 | @pytest.mark.usefixtures("tmp_commitizen_project") |
| 386 | def test_get_filenames_in_commit(util: UtilFixture): |
| 387 | """Test get_filenames_in_commit returns filenames from the last commit.""" |
| 388 | util.create_file_and_commit("feat: old feature", filename="old_file.txt") |
| 389 | |
| 390 | filename = "test_feature_file.txt" |
| 391 | util.create_file_and_commit("feat: add new feature", filename=filename) |
| 392 | |
| 393 | filenames = git.get_filenames_in_commit() |
| 394 | assert [filename] == filenames |
| 395 | |
| 396 | |
| 397 | @pytest.mark.usefixtures("tmp_commitizen_project") |
nothing calls this directly
no test coverage detected
searching dependent graphs…