MCPcopy
hub / github.com/saltstack/salt / _test_name

Function _test_name

tests/pytests/functional/utils/gitfs/test_gitfs.py:192–211  ·  view source on GitHub ↗
(opts)

Source from the content-addressed store, hash-verified

190
191
192def _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

Callers 2

test_gitpython_nameFunction · 0.85
test_pygit2_nameFunction · 0.85

Calls 3

_get_gitfsFunction · 0.85
fetch_remotesMethod · 0.80
get_cache_basehashMethod · 0.80

Tested by

no test coverage detected