(opts)
| 190 | |
| 191 | |
| 192 | def _test_name(opts): |
| 193 | p = _get_gitfs( |
| 194 | opts, |
| 195 | { |
| 196 | "https://github.com/saltstack/salt-test-pillar-gitfs.git": [ |
| 197 | {"name": "name1"} |
| 198 | ] |
| 199 | }, |
| 200 | { |
| 201 | "https://github.com/saltstack/salt-test-pillar-gitfs.git": [ |
| 202 | {"name": "name2"} |
| 203 | ] |
| 204 | }, |
| 205 | ) |
| 206 | p.fetch_remotes() |
| 207 | assert len(p.remotes) == 2 |
| 208 | repo = p.remotes[0] |
| 209 | repo2 = p.remotes[1] |
| 210 | assert repo.get_cache_basehash() == "name1" |
| 211 | assert repo2.get_cache_basehash() == "name2" |
| 212 | |
| 213 | |
| 214 | @skipif_no_gitpython |
no test coverage detected