mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
* `asyncio_default_fixture_loop_scope = function` * Fix a bunch of BeautifulSoup deprecation warnings * Fix for PytestUnraisableExceptionWarning: Exception ignored in: <_io.FileIO [closed]> * xfail for sql_time_limit tests (these can be flaky in CI) Refs #2461
11 lines
287 B
Python
11 lines
287 B
Python
import black
|
|
from click.testing import CliRunner
|
|
from pathlib import Path
|
|
|
|
code_root = Path(__file__).parent.parent
|
|
|
|
|
|
def test_black(event_loop):
|
|
runner = CliRunner()
|
|
result = runner.invoke(black.main, [str(code_root), "--check"])
|
|
assert result.exit_code == 0, result.output
|