mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Support non-async view functions, closes #867
This commit is contained in:
parent
1bb33dab49
commit
4b142862f2
4 changed files with 33 additions and 10 deletions
|
|
@ -565,7 +565,12 @@ def test_actor_json(app_client):
|
|||
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
"path,body", [("/one/", "2"), ("/two/Ray?greeting=Hail", "Hail Ray"),]
|
||||
"path,body",
|
||||
[
|
||||
("/one/", "2"),
|
||||
("/two/Ray?greeting=Hail", "Hail Ray"),
|
||||
("/not-async/", "This was not async"),
|
||||
],
|
||||
)
|
||||
def test_register_routes(app_client, path, body):
|
||||
response = app_client.get(path)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue