MCPcopy Index your code
hub / github.com/commitizen-tools/commitizen / test_get_filenames_in_commit

Function test_get_filenames_in_commit

tests/test_git.py:386–394  ·  view source on GitHub ↗

Test get_filenames_in_commit returns filenames from the last commit.

(util: UtilFixture)

Source from the content-addressed store, hash-verified

384
385@pytest.mark.usefixtures("tmp_commitizen_project")
386def 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")

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…