(self, git_repo)
| 95 | assert any(s.path == "README.md" for s in status) |
| 96 | |
| 97 | def test_new_file(self, git_repo): |
| 98 | with open(os.path.join(git_repo, "new.txt"), "w") as f: |
| 99 | f.write("new file\n") |
| 100 | status = get_file_status(git_repo) |
| 101 | assert len(status) >= 1 |
| 102 | new_files = [s for s in status if s.path == "new.txt"] |
| 103 | assert len(new_files) == 1 |
| 104 | assert new_files[0].is_added |
| 105 | |
| 106 | |
| 107 | class TestFileStatus: |
nothing calls this directly
no test coverage detected