mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Renamed datasette.config() to .setting(), closes #1107
This commit is contained in:
parent
5a77f7a649
commit
f2e2bfcdd9
10 changed files with 86 additions and 60 deletions
|
|
@ -33,3 +33,15 @@ def test_sign_unsign(datasette, value, namespace):
|
|||
assert value == datasette.unsign(signed, *extra_args)
|
||||
with pytest.raises(BadSignature):
|
||||
datasette.unsign(signed[:-1] + ("!" if signed[-1] != "!" else ":"))
|
||||
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
"setting,expected",
|
||||
(
|
||||
("base_url", "/"),
|
||||
("max_csv_mb", 100),
|
||||
("allow_csv_stream", True),
|
||||
),
|
||||
)
|
||||
def test_datasette_setting(datasette, setting, expected):
|
||||
assert datasette.setting(setting) == expected
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue