mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Finished applying blacken-docs, closes #1718
This commit is contained in:
parent
498e1536f5
commit
289e4cf80a
2 changed files with 4 additions and 3 deletions
3
.github/workflows/test.yml
vendored
3
.github/workflows/test.yml
vendored
|
|
@ -34,6 +34,5 @@ jobs:
|
||||||
cog --check docs/*.rst
|
cog --check docs/*.rst
|
||||||
- name: Check if blacken-docs needs to be run
|
- name: Check if blacken-docs needs to be run
|
||||||
run: |
|
run: |
|
||||||
|
# This fails on syntax errors, or a diff was applied
|
||||||
blacken-docs -l 60 docs/*.rst
|
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
|
@pytest.mark.asyncio
|
||||||
async def test_example_table_json(datasette):
|
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.status_code == 200
|
||||||
assert response.json() == [
|
assert response.json() == [
|
||||||
{"id": 1, "name": "Cleo", "age": 5},
|
{"id": 1, "name": "Cleo", "age": 5},
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue