You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
yamllint/tests
Martin Packman 2fe0ffd9a0 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 adrienverge/yamllint#228
5 years ago
..
rules fix(default.yaml): disable `empty-values` & `octal-values` by default 6 years ago
yaml-1.2-spec-examples Tests: Remove ghost character from YAML spec example 10 years ago
__init__.py Tests: Run with LC_ALL=C for uniform tests 9 years ago
common.py Drop support for EOL Python 2.6 7 years ago
test_cli.py Fix new-lines rule on Python 3 5 years ago
test_config.py feat: Lint .yamllint by default 6 years ago
test_linter.py Drop support for EOL Python 2.6 7 years ago
test_module.py Drop support for EOL Python 2.6 7 years ago
test_parser.py Upgrade unit tests to use more useful asserts 7 years ago
test_spec_examples.py Remove redundant parentheses 7 years ago
test_syntax_errors.py Rules: indentation: Handle sets 10 years ago
test_yamllint_directives.py Allow disabling all checks for a file 6 years ago