mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 17:09:03 +00:00
6b0921e5ba
mock = MagicMock(return_value='') works for functions: here mock() will return the value (empty string). But mock returns the MagicMock object. Not sure why but it worked in Py2, but in Py3 os.path.join(mock, 'something'), for instance, returns an error. Fixed the issues by avoiding of using mocks where we can use simple strings. |
||
---|---|---|
.. | ||
integration | ||
perf | ||
pkg/rpm | ||
support | ||
unit | ||
utils | ||
__init__.py | ||
buildpackage.py | ||
committer_parser.py | ||
conftest.py | ||
consist.py | ||
eventlisten.py | ||
eventlisten.sh | ||
jenkins.py | ||
minionswarm.py | ||
modparser.py | ||
packdump.py | ||
runtests.py | ||
salt-tcpdump.py | ||
saltsh.py | ||
wheeltest.py | ||
whitelist.txt |