djLint/tests/test_handlebars/test_else.py
2022-05-13 15:36:55 -05:00

23 lines
615 B
Python

"""Djlint tests specific to Handlebars.js.
run::
pytest tests/test_handlebars.py --cov=src/djlint --cov-branch \
--cov-report xml:coverage.xml --cov-report term-missing
pytest tests/test_handlebars.py::test_each --cov=src/djlint --cov-branch \
--cov-report xml:coverage.xml --cov-report term-missing
"""
# pylint: disable=C0116
from typing import TextIO
from click.testing import CliRunner
from tests.conftest import reformat
def test_handlebars_else(runner: CliRunner, tmp_file: TextIO) -> None:
output = reformat(tmp_file, runner, b"{{^}}")
assert output.exit_code == 0