mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-07-23 17:34:32 +02:00
16 lines
368 B
Python
16 lines
368 B
Python
import black
|
|
from click.testing import CliRunner
|
|
from pathlib import Path
|
|
import pytest
|
|
import sys
|
|
|
|
code_root = Path(__file__).parent.parent
|
|
|
|
|
|
def test_black():
|
|
runner = CliRunner()
|
|
result = runner.invoke(
|
|
black.main,
|
|
[str(code_root / "tests"), str(code_root / "sqlite_utils"), "--check"],
|
|
)
|
|
assert result.exit_code == 0, result.output
|