(testrepo: Repository)
| 984 | |
| 985 | |
| 986 | def test_is_shallow(testrepo: Repository) -> None: |
| 987 | assert not testrepo.is_shallow |
| 988 | |
| 989 | # create a dummy shallow file |
| 990 | with (Path(testrepo.path) / 'shallow').open('wt') as f: |
| 991 | f.write('abcdef0123456789abcdef0123456789abcdef00\n') |
| 992 | |
| 993 | assert testrepo.is_shallow |
| 994 | |
| 995 | |
| 996 | def test_repository_hashfile(testrepo: Repository) -> None: |