Finished applying blacken-docs, closes #1718

api-extras
Simon Willison 2022-04-24 09:17:59 -07:00
rodzic 498e1536f5
commit 289e4cf80a
2 zmienionych plików z 4 dodań i 3 usunięć

Wyświetl plik

@ -34,6 +34,5 @@ jobs:
cog --check docs/*.rst
- name: Check if blacken-docs needs to be run
run: |
# This fails on syntax errors, or a diff was applied
blacken-docs -l 60 docs/*.rst
# This fails if a diff was generated:
git diff-index --quiet HEAD --

Wyświetl plik

@ -118,7 +118,9 @@ Here's an example that uses the `sqlite-utils library <https://sqlite-utils.data
@pytest.mark.asyncio
async def test_example_table_json(datasette):
response = await datasette.client.get("/test/dogs.json?_shape=array")
response = await datasette.client.get(
"/test/dogs.json?_shape=array"
)
assert response.status_code == 200
assert response.json() == [
{"id": 1, "name": "Cleo", "age": 5},