Skip to content

Commit

Permalink
fix coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
wxtim committed Jan 21, 2025
1 parent 7437cfa commit d385f67
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/unit/scripts/test_lint.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,15 @@ def test_check_cylc_file_7to8_has_shebang():
assert not lint.counter


def test_check_ignores_jinja2_middle():
"""Only the badly indented section outside the jinja2 block should
return a lint."""
lint = lint_text(
'#!jinja2\n{%\n [scheduler]\n%}\n [scheduler]', ['style']
)
len(lint.messages) == 1


def test_check_cylc_file_line_no():
"""It prints the correct line numbers"""
lint = lint_text(TEST_FILE, ['728'])
Expand Down

0 comments on commit d385f67

Please sign in to comment.