mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-08-17 23:04:09 +02:00
Unit test for black-approved coding style
This commit is contained in:
parent
03e3f7d648
commit
3c50a3600d
2 changed files with 15 additions and 1 deletions
14
tests/test_black.py
Normal file
14
tests/test_black.py
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
import black
|
||||
from click.testing import CliRunner
|
||||
from pathlib import Path
|
||||
|
||||
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
|
||||
Loading…
Add table
Add a link
Reference in a new issue