mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Trying to get pytest-dist working on multiple cores
This commit is contained in:
parent
7d7f5f61fd
commit
be018ce47f
4 changed files with 43 additions and 25 deletions
|
|
@ -639,8 +639,8 @@ def test_allow_download_on(app_client):
|
|||
assert len(soup.findAll('a', {'href': re.compile('\.db$')}))
|
||||
|
||||
|
||||
def test_allow_download_off():
|
||||
for client in app_client(config={
|
||||
def test_allow_download_off(worker_id):
|
||||
for client in app_client(worker_id, config={
|
||||
'allow_download': False,
|
||||
}):
|
||||
response = client.get(
|
||||
|
|
@ -665,8 +665,8 @@ def test_allow_sql_on(app_client):
|
|||
assert len(soup.findAll('textarea', {'name': 'sql'}))
|
||||
|
||||
|
||||
def test_allow_sql_off():
|
||||
for client in app_client(config={
|
||||
def test_allow_sql_off(worker_id):
|
||||
for client in app_client(worker_id, config={
|
||||
'allow_sql': False,
|
||||
}):
|
||||
response = client.get(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue