mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Use pytest-xdist to speed up tests (#1290)
* Run tests in CI using pytest-xdist * Documentation for pytest-xdist Closes #1289
This commit is contained in:
parent
59ef4a20cb
commit
0a7621f96f
5 changed files with 26 additions and 1 deletions
|
|
@ -1,6 +1,8 @@
|
|||
import httpx
|
||||
import pytest
|
||||
|
||||
|
||||
@pytest.mark.serial
|
||||
def test_serve_localhost_http(ds_localhost_http_server):
|
||||
response = httpx.get("http://localhost:8041/_memory.json")
|
||||
assert {
|
||||
|
|
@ -10,6 +12,7 @@ def test_serve_localhost_http(ds_localhost_http_server):
|
|||
}.items() <= response.json().items()
|
||||
|
||||
|
||||
@pytest.mark.serial
|
||||
def test_serve_localhost_https(ds_localhost_https_server):
|
||||
_, client_cert = ds_localhost_https_server
|
||||
response = httpx.get("https://localhost:8042/_memory.json", verify=client_cert)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue