mirror of
https://github.com/simonw/datasette.git
synced 2026-06-15 21:46:57 +02:00
textarea column type
Shows as multiline edit in edit/insert dialog
This commit is contained in:
parent
2b61c916d0
commit
5490c7b794
6 changed files with 29 additions and 8 deletions
|
|
@ -942,6 +942,7 @@ async def test_table_insert_action_button_and_data():
|
|||
"permissions": {
|
||||
"insert-row": {"id": "root"},
|
||||
},
|
||||
"column_types": {"body": "textarea"},
|
||||
},
|
||||
},
|
||||
},
|
||||
|
|
@ -993,6 +994,7 @@ async def test_table_insert_action_button_and_data():
|
|||
assert created["default"] == "datetime('now')"
|
||||
assert created["has_default"]
|
||||
assert body["value_type"] == "string"
|
||||
assert body["column_type"] == {"type": "textarea", "config": None}
|
||||
finally:
|
||||
ds.close()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue