kopia lustrzana https://github.com/simonw/datasette
Finished applying blacken-docs, closes #1718
rodzic
498e1536f5
commit
289e4cf80a
|
@ -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 --
|
||||
|
|
|
@ -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},
|
||||
|
|
Ładowanie…
Reference in New Issue