3
0
mirror of https://github.com/adrienverge/yamllint.git synced 2025-02-25 18:55:20 -06:00
yamllint/tests
Martin Packman 91763f5476 Fix new-lines rule on Python 3
Use io.open() when reading files in cli which has the same behaviour
in Python 2 and Python 3, and supply the newline='' parameter which
handles but does not translate line endings.

Add dos.yml test file with windows newlines.

Also add to file finding test expected output.

Add test for new-lines rule through the cli.

Validates files are read with the correct universal newlines setting.

Fixes 
2020-02-13 12:02:45 +01:00
..
rules fix(default.yaml): disable empty-values & octal-values by default 2019-10-15 09:41:32 +02:00
yaml-1.2-spec-examples Tests: Remove ghost character from YAML spec example 2016-02-01 23:27:49 +01:00
__init__.py Tests: Run with LC_ALL=C for uniform tests 2016-06-28 11:04:50 +02:00
common.py Drop support for EOL Python 2.6 2018-11-26 19:09:47 +01:00
test_cli.py Fix new-lines rule on Python 3 2020-02-13 12:02:45 +01:00
test_config.py feat: Lint .yamllint by default 2019-08-26 10:01:40 +02:00
test_linter.py Drop support for EOL Python 2.6 2018-11-26 19:09:47 +01:00
test_module.py Drop support for EOL Python 2.6 2018-11-26 19:09:47 +01:00
test_parser.py Upgrade unit tests to use more useful asserts 2018-11-26 19:09:47 +01:00
test_spec_examples.py Remove redundant parentheses 2018-11-26 19:09:47 +01:00
test_syntax_errors.py Rules: indentation: Handle sets 2016-02-01 17:52:46 +01:00
test_yamllint_directives.py Allow disabling all checks for a file 2019-11-19 11:26:31 +01:00