ansible/test/sanity/code-smell
Julien Champseix 19dc267e4c Allow specifying the output encoding in the template module (#42171)
Allow specifying the source and destination files' encodings in the template module

* Added output_encoding to the template module, default to utf-8
* Added documentation for the new variables
* Leveraged the encoding argument on to_text() and to_bytes() to keep the implementation as simple as possible
* Added integration tests with files in utf-8 and windows-1252 encodings, testing all combinations
* fix bad smell test by excluding windows-1252 files from the utf8 checks
* fix bad smell test by excluding valid files from the smart quote test
2018-07-25 13:10:40 -07:00
..
azure-requirements.json
azure-requirements.py
boilerplate.json
boilerplate.py
changelog.json Implement new changelog generator. 2018-06-05 19:08:15 -07:00
changelog.py Implement new changelog generator. 2018-06-05 19:08:15 -07:00
configure-remoting-ps1.json
configure-remoting-ps1.py
docs-build.json
docs-build.py
empty-init.json
empty-init.py
line-endings.json
line-endings.py
no-assert.json
no-assert.py Adds the ipaddress compat library backport from Python 3.x (#42265) 2018-07-17 11:37:23 -07:00
no-basestring.json
no-basestring.py
no-dict-iteritems.json
no-dict-iteritems.py
no-dict-iterkeys.json
no-dict-iterkeys.py
no-dict-itervalues.json
no-dict-itervalues.py
no-get-exception.json
no-get-exception.py
no-illegal-filenames.json
no-illegal-filenames.py
no-smart-quotes.json
no-smart-quotes.py Allow specifying the output encoding in the template module (#42171) 2018-07-25 13:10:40 -07:00
no-tests-as-filters.json
no-tests-as-filters.py
no-underscore-variable.json
no-underscore-variable.py
no-unicode-literals.json
no-unicode-literals.py Adds the ipaddress compat library backport from Python 3.x (#42265) 2018-07-17 11:37:23 -07:00
replace-urlopen.json
replace-urlopen.py Add requests.Session like class (#37622) 2018-06-01 11:44:20 -05:00
required-and-default-attributes.json
required-and-default-attributes.py
shebang.json
shebang.py Fix shebangs and file modes and update tests. (#40563) 2018-05-22 14:25:36 -07:00
skip.txt
test-constraints.json
test-constraints.py
use-argspec-type-path.json
use-argspec-type-path.py expand user before calling abspath (#40196) 2018-06-13 21:18:02 -04:00
use-compat-six.json
use-compat-six.py