mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
* Upgrade to uvicorn 0.10.4 * Drop support for Python 3.5 * Bump all dependencies to latest releases * Update docs to reflect we no longer support 3.5 * Removed code that skipped black unit test on 3.5 Closes #622
15 lines
356 B
Python
15 lines
356 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 / "datasette"), "--check"]
|
|
)
|
|
assert result.exit_code == 0, result.output
|