Skip to content

Commit

Permalink
fix: test style
Browse files Browse the repository at this point in the history
  • Loading branch information
fernandezcuesta committed Dec 18, 2024
1 parent bc0df17 commit 1efd875
Showing 1 changed file with 20 additions and 24 deletions.
44 changes: 20 additions & 24 deletions tests/rules/test_key_ordering.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,27 +149,23 @@ def test_locale_accents(self):
problem=(3, 1))

def test_ignored_keys(self):
conf = (
'key-ordering:\n'
' ignored-keys: ["n(a|o)me", "^b"]\n'
)
self.check(
'---\n'
'a:\n'
'b:\n'
'c:\n'
'name: ignored\n'
'first-name: ignored\n'
'nome: ignored\n'
'gnomes: ignored\n'
'd:\n'
'e:\n'
'boat: ignored\n'
'.boat: ERROR\n'
'call: ERROR\n'
'f:\n'
'g:\n',
conf,
problem1=(12, 1),
problem2=(13, 1),
)
conf = ('key-ordering:\n'
' ignored-keys: ["n(a|o)me", "^b"]\n')
self.check('---\n'
'a:\n'
'b:\n'
'c:\n'
'name: ignored\n'
'first-name: ignored\n'
'nome: ignored\n'
'gnomes: ignored\n'
'd:\n'
'e:\n'
'boat: ignored\n'
'.boat: ERROR\n'
'call: ERROR\n'
'f:\n'
'g:\n',
conf,
problem1=(12, 1),
problem2=(13, 1))

0 comments on commit 1efd875

Please sign in to comment.