mirror of
https://github.com/simonw/datasette.git
synced 2026-05-28 21:06:18 +02:00
Fixed broken test caused by apply_queries_config() rename
This commit is contained in:
parent
ca4907ab6b
commit
e89ffa0e06
1 changed files with 2 additions and 2 deletions
|
|
@ -937,7 +937,7 @@ async def test_permissions_in_config(
|
|||
updated_config = copy.deepcopy(previous_config)
|
||||
updated_config.update(config)
|
||||
perms_ds.config = updated_config
|
||||
await perms_ds.apply_queries_config()
|
||||
await perms_ds._save_queries_from_config()
|
||||
try:
|
||||
# Convert old-style resource to Resource object
|
||||
from datasette.resources import DatabaseResource, QueryResource, TableResource
|
||||
|
|
@ -964,7 +964,7 @@ async def test_permissions_in_config(
|
|||
assert result == expected_result
|
||||
finally:
|
||||
perms_ds.config = previous_config
|
||||
await perms_ds.apply_queries_config()
|
||||
await perms_ds._save_queries_from_config()
|
||||
|
||||
|
||||
@pytest.mark.asyncio
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue