yamllint/tests
Adrien Vergé d3cd8ba332 line-length: Generalize ...-inline-mappings for corner cases
This commit refactors the `allow-non-breakable-inline-mappings` logic to
use YAML tokens and avoid crashes or erroneous reports on cases like:

```yaml
- {a: "http://localhost/very/very/very/very/very/very/long/url"
   }
```

```yaml
dict:
  {a: long long long long long long long, b: nospace}
```

```yaml
- long_line: http://localhost/very/very/long/url
```

```yaml
long_line: and+some+space+at+the+end       <-- extra spaces
```

For reference see:
https://github.com/adrienverge/yamllint/pull/17#issuecomment-247805799
2016-09-19 12:39:52 +01:00
..
rules line-length: Generalize ...-inline-mappings for corner cases 2016-09-19 12:39:52 +01: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 Tests: Reorganize common and global tests 2016-02-01 16:56:32 +01:00
test_cli.py feat(cli): Colour output only on TTY 2016-08-12 11:03:41 +02:00
test_config.py Tests: config: Check the non-valid-yaml-config case 2016-03-25 13:46:19 +01:00
test_linter.py linter: Fix UnicodeError when parsing comments 2016-06-28 09:58:23 +02:00
test_parser.py parser: Add tests for Comment.is_inline() 2016-06-27 17:47:13 +02:00
test_spec_examples.py Tests: Use absolute path to spec examples 2016-03-04 12:15:26 +01:00
test_syntax_errors.py Rules: indentation: Handle sets 2016-02-01 17:52:46 +01:00
test_yamllint_directives.py Allow disabling yamllint checks using comments 2016-06-27 17:53:23 +02:00