(repo: Repository)
| 125 | |
| 126 | |
| 127 | def test_set_url(repo: Repository) -> None: |
| 128 | new_url = 'ssh://git@127.0.0.1:2222/my_repo' |
| 129 | s = repo.submodules[SUBM_PATH] |
| 130 | s.url = new_url |
| 131 | assert new_url == repo.submodules[SUBM_PATH].url |
| 132 | # Ensure .gitmodules has been correctly altered |
| 133 | with open(Path(repo.workdir, '.gitmodules'), 'r') as fd: |
| 134 | modules = fd.read() |
| 135 | assert new_url in modules |
| 136 | |
| 137 | |
| 138 | def test_missing_url(repo: Repository) -> None: |
nothing calls this directly
no test coverage detected
searching dependent graphs…