mirror of
https://github.com/simonw/datasette.git
synced 2026-06-04 16:16:59 +02:00
Rename set-column-types action to et-column-type
Refs https://github.com/simonw/datasette/pull/2674#issuecomment-4085015792
This commit is contained in:
parent
d440c20984
commit
2b06da29a1
7 changed files with 18 additions and 20 deletions
|
|
@ -191,7 +191,7 @@ def test_auth_create_token(
|
|||
"all:view-query",
|
||||
"database:fixtures:drop-table",
|
||||
"resource:fixtures:foreign_key_references:insert-row",
|
||||
"resource:fixtures:facetable:set-column-types",
|
||||
"resource:fixtures:facetable:set-column-type",
|
||||
}
|
||||
)
|
||||
# Now try actually creating one
|
||||
|
|
@ -430,7 +430,7 @@ async def test_root_with_root_enabled_gets_all_permissions(ds_client):
|
|||
|
||||
assert (
|
||||
await ds_client.ds.allowed(
|
||||
action="set-column-types",
|
||||
action="set-column-type",
|
||||
resource=TableResource("fixtures", "facetable"),
|
||||
actor=root_actor,
|
||||
)
|
||||
|
|
@ -504,9 +504,9 @@ async def test_root_without_root_enabled_no_special_permissions(ds_client):
|
|||
|
||||
assert (
|
||||
await ds_client.ds.allowed(
|
||||
action="set-column-types",
|
||||
action="set-column-type",
|
||||
resource=TableResource("fixtures", "facetable"),
|
||||
actor=root_actor,
|
||||
)
|
||||
is not True
|
||||
), "Root without root_enabled should not automatically get set-column-types"
|
||||
), "Root without root_enabled should not automatically get set-column-type"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue