datasette/tests/test_black.py

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

11 lines
277 B
Python
Raw Normal View History

import black
from click.testing import CliRunner
from pathlib import Path
code_root = Path(__file__).parent.parent
2025-10-01 12:51:23 -07:00
def test_black():
runner = CliRunner()
result = runner.invoke(black.main, [str(code_root), "--check"])
assert result.exit_code == 0, result.output