(fp, repository)
| 149 | |
| 150 | |
| 151 | def test_deployable_files_uses_git_excludes(fp, repository): |
| 152 | fp.register( |
| 153 | ["git", "ls-files", "--cached", "--others", "--exclude-standard"], |
| 154 | stdout="pyproject.toml\nsrc/main.py\n", |
| 155 | ) |
| 156 | |
| 157 | assert repository.deployable_files() == ["pyproject.toml", "src/main.py"] |
| 158 | |
| 159 | |
| 160 | def _git(cwd, *args: str) -> str: |
nothing calls this directly
no test coverage detected