mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Modernize code to Python 3.6+ (#1158)
* Compact dict and set building * Remove redundant parentheses * Simplify chained conditions * Change method name to lowercase * Use triple double quotes for docstrings Thanks, @eumiro!
This commit is contained in:
parent
90eba4c3ca
commit
a882d67962
19 changed files with 76 additions and 82 deletions
|
|
@ -437,7 +437,7 @@ def cascade_app_client():
|
|||
],
|
||||
)
|
||||
def test_permissions_cascade(cascade_app_client, path, permissions, expected_status):
|
||||
"Test that e.g. having view-table but NOT view-database lets you view table page, etc"
|
||||
"""Test that e.g. having view-table but NOT view-database lets you view table page, etc"""
|
||||
allow = {"id": "*"}
|
||||
deny = {}
|
||||
previous_metadata = cascade_app_client.ds._metadata
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue