salt/tests/unit
Dmitry Kuzmenko 6b0921e5ba Py3 tests fixes: don't mock non-callable objects with return_value.
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.
2017-05-25 12:33:43 +03:00
..
acl Cleanup test attributes once finished 2017-03-28 19:00:51 +01:00
beacons Drop @patch usage 2017-04-28 13:36:42 +01:00
cache Drop @patch usage 2017-04-28 13:36:42 +01:00
cli Merge branch '2016.11' into 'develop' 2017-03-28 17:09:30 -06:00
cloud Drop @patch usage 2017-04-28 13:36:42 +01:00
config Drop @patch usage 2017-04-28 13:36:42 +01:00
engines Drop @patch usage 2017-04-28 13:36:42 +01:00
fileserver unittest.TestCase does not have a skip() method. It's skipTest. 2017-04-28 13:33:33 +01:00
grains Update unit tests for numeric osmajorrelease 2017-04-11 12:36:36 -05:00
loader Take care of resource leakage on tests 2017-04-04 18:58:20 +01:00
modules Py3 tests fixes: don't mock non-callable objects with return_value. 2017-05-25 12:33:43 +03:00
netapi Drop @patch usage 2017-04-28 13:36:42 +01:00
output Properly handle non native strings under py2 and py3 2017-04-28 13:33:36 +01:00
pillar Drop @patch usage 2017-04-28 13:36:42 +01:00
renderers Drop @patch usage 2017-04-28 13:36:42 +01:00
returners Drop @patch usage 2017-04-28 13:36:42 +01:00
runners Merge pull request #40522 from carlpett/vault-fix-master-minion 2017-04-04 13:33:56 -06:00
serializers Import the full module namespace to avoid import shadowing. 2017-03-28 19:02:47 +01:00
ssh Absolute imports and A LOT of code cleanup. 2017-03-01 01:33:07 +00:00
states remove unused imports 2017-05-12 16:38:30 -06:00
templates Pylint fix 2017-05-11 09:03:10 -06:00
transport Switch how IOLoop's are run on these tests 2017-04-28 13:36:45 +01:00
utils Merge branch '2016.11' into 'nitrogen' 2017-05-23 10:36:41 -06:00
__init__.py The LoaderModuleMixin is the right approach here. 2017-03-28 19:04:05 +01:00
test_auth.py Add calls to salt.client.get_local_client to patches list in auth unit tests 2017-05-05 14:26:54 -06:00
test_client.py Drop @patch usage 2017-04-28 13:36:42 +01:00
test_conf.py Absolute imports and A LOT of code cleanup. 2017-03-01 01:33:07 +00:00
test_context.py Absolute imports and A LOT of code cleanup. 2017-03-01 01:33:07 +00:00
test_crypt.py Drop @patch usage 2017-04-28 13:36:42 +01:00
test_daemons.py Move mixins to tests.support.mixins. 2017-04-04 17:29:34 +01:00
test_doc.py Absolute imports and A LOT of code cleanup. 2017-03-01 01:33:07 +00:00
test_fileclient.py Merge branch '2016.11' into 'nitrogen' 2017-04-17 13:32:56 -06:00
test_files.py Absolute imports and A LOT of code cleanup. 2017-03-01 01:33:07 +00:00
test_log.py Absolute imports and A LOT of code cleanup. 2017-03-01 01:33:07 +00:00
test_map_conf.py Drop @patch usage 2017-04-28 13:36:42 +01:00
test_minion.py Drop @patch usage 2017-04-28 13:36:42 +01:00
test_payload.py Absolute imports and A LOT of code cleanup. 2017-03-01 01:33:07 +00:00
test_pillar.py Drop @patch usage 2017-04-28 13:36:42 +01:00
test_pydsl.py Use the test run temporary path, not the system temporary path 2017-04-04 18:58:21 +01:00
test_pyobjects.py Cleanup test attributes once finished 2017-03-28 19:00:51 +01:00
test_simple.py Absolute imports and A LOT of code cleanup. 2017-03-01 01:33:07 +00:00
test_spm.py Patch calls to salt.client.Caller and salt.client.get_local_client in spm unit tests 2017-05-04 14:30:49 -06:00
test_state.py Drop @patch usage 2017-04-28 13:36:42 +01:00
test_stateconf.py Cleanup attributes 2017-03-28 19:00:50 +01:00
test_target.py Move whatever we need from salttesting to salt. 2017-02-28 22:52:49 +00:00
test_template.py Merge branch '2016.11' into 'develop' 2017-04-05 13:02:14 -06:00
test_test_module_names.py Add file to ignored paths 2017-04-01 14:22:54 +01:00
test_version.py Absolute imports and A LOT of code cleanup. 2017-03-01 01:33:07 +00:00