salt/tests/support
Erik Johnson 002aa88a97
Replace yaml usage with a helper to ensure unicode is handled properly
Without allow_unicode=True, unicode characters are processed through the
str representer and on Python 2 are dumped as a Unicode code point (i.e.
a literal \u0414). This commit makes allow_unicode=True the default in
our salt.utils.yamlloader.safe_dump() helper. It also adds a new
salt.utils.yamlloader.dump() helper which wraps yaml.dump() and also
makes allow_unicode=True the default.

To make importing and using our custom yaml loader/dumper easier, a
convenience module called salt.utils.yaml has been added, which does a
wildcard import from both salt.utils.yamldumper and
salt.utils.yamlloader.

Refs to yaml.load/dump and yaml.safe_load/safe_dump have been updated to
salt.utils.yaml, to ensure that unicode is handled properly.
2018-01-03 14:14:21 -06:00
..
ext Move whatever we need from salttesting to salt. 2017-02-28 22:52:49 +00:00
parser Replace json module usage with a helper to ensure unicode content is handled properly 2017-12-27 09:30:58 -06:00
__init__.py Moved some test supporting modules to tests/support 2017-02-28 22:52:48 +00:00
case.py Replace yaml usage with a helper to ensure unicode is handled properly 2018-01-03 14:14:21 -06:00
cherrypy_testclasses.py Use setUpClass instead of __init__ 2017-04-28 13:33:37 +01:00
copyartifacts.py Replace yaml usage with a helper to ensure unicode is handled properly 2018-01-03 14:14:21 -06:00
cptestcase.py adapt tests to reflect reality 2017-12-20 06:59:56 -05:00
docker.py [PY3] Add print_function import to files with unicode_literals already added 2017-12-15 12:14:18 -06:00
gitfs.py Replace yaml usage with a helper to ensure unicode is handled properly 2018-01-03 14:14:21 -06:00
helpers.py Fix fake importer for Python 3 2017-12-19 12:09:36 -06:00
mixins.py Replace yaml usage with a helper to ensure unicode is handled properly 2018-01-03 14:14:21 -06:00
mock.py Roll back use of explicit unicode literals 2017-12-10 17:41:45 -06:00
napalm.py import absolute paths 2017-11-29 10:00:41 +11:00
paths.py Merge branch '2017.7' into 'develop' 2017-11-05 20:28:51 -07:00
processes.py Merge pull request #41617 from cro/n_proxy_tests 2017-06-15 12:07:29 -05:00
runtests.py Replace json module usage with a helper to ensure unicode content is handled properly 2017-12-27 09:30:58 -06:00
unit.py [PY3] Add print_function import to files with unicode_literals already added 2017-12-15 12:14:18 -06:00
xmlunit.py Use explicit unicode strings + break up salt.utils 2017-08-08 13:33:43 -05:00