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

Function _test_gitfs_simple

tests/pytests/functional/utils/gitfs/test_gitfs.py:73–80  ·  view source on GitHub ↗
(gitfs_opts)

Source from the content-addressed store, hash-verified

71
72
73def _test_gitfs_simple(gitfs_opts):
74 g = _get_gitfs(
75 gitfs_opts,
76 {"https://github.com/saltstack/salt-test-pillar-gitfs.git": [{"name": "bob"}]},
77 )
78 g.fetch_remotes()
79 assert len(g.remotes) == 1
80 assert set(g.file_list({"saltenv": "main"})) == {".gitignore", "README.md"}
81
82
83@skipif_no_gitpython

Callers 2

test_pygit2_gitfs_simpleFunction · 0.85

Calls 4

_get_gitfsFunction · 0.85
fetch_remotesMethod · 0.80
setFunction · 0.50
file_listMethod · 0.45

Tested by

no test coverage detected