mirror of
https://github.com/simonw/datasette.git
synced 2026-05-27 20:36:17 +02:00
Fix test_write_wrapper_set_authorizer: use permissive callback instead of None
conn.set_authorizer(None) does not clear the authorizer - SQLite treats
None as an invalid callback. The denied state persists on the shared
write connection, causing subsequent non-deny test cases to fail.
Fixes test added in 8a315f3d.
This commit is contained in:
parent
5c3137d148
commit
1c6c6d2e68
1 changed files with 1 additions and 1 deletions
|
|
@ -445,7 +445,7 @@ async def test_write_wrapper_set_authorizer(datasette, actor, table, should_deny
|
|||
try:
|
||||
yield
|
||||
finally:
|
||||
conn.set_authorizer(None)
|
||||
conn.set_authorizer(lambda *args: sqlite3.SQLITE_OK)
|
||||
|
||||
return wrapper
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue