MCPcopy Index your code
hub / github.com/saltstack/salt / run_function

Method run_function

tests/integration/modules/test_git.py:132–138  ·  view source on GitHub ↗

Ensure that results are decoded TODO: maybe move this behavior to ModuleCase itself?

(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

130 subprocess.check_call(["git", "checkout", "--quiet", "master"])
131
132 def run_function(self, *args, **kwargs): # pylint: disable=arguments-differ
133 """
134 Ensure that results are decoded
135
136 TODO: maybe move this behavior to ModuleCase itself?
137 """
138 return salt.utils.data.decode(super().run_function(*args, **kwargs))
139
140 @pytest.mark.slow_test
141 def test_add_dir(self):

Callers 15

test_add_dirMethod · 0.95
test_add_fileMethod · 0.95
test_archiveMethod · 0.95
test_archive_subdirMethod · 0.95
test_branchMethod · 0.95
test_checkoutMethod · 0.95
test_checkout_no_revMethod · 0.95
test_cloneMethod · 0.95
test_commitMethod · 0.95
test_configMethod · 0.95
test_current_branchMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected