mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-07-23 01:14:31 +02:00
Docstring for sqlite-utils transform
This commit is contained in:
parent
f8553799d3
commit
c755f2852d
2 changed files with 6 additions and 0 deletions
|
|
@ -943,6 +943,7 @@ def transform(
|
|||
drop_foreign_key,
|
||||
sql,
|
||||
):
|
||||
"Transform a table beyond the capabilities of ALTER TABLE"
|
||||
db = sqlite_utils.Database(path)
|
||||
types = {}
|
||||
kwargs = {}
|
||||
|
|
|
|||
|
|
@ -20,3 +20,8 @@ def documented_commands():
|
|||
@pytest.mark.parametrize("command", cli.cli.commands.keys())
|
||||
def test_commands_are_documented(documented_commands, command):
|
||||
assert command in documented_commands
|
||||
|
||||
|
||||
@pytest.mark.parametrize("command", cli.cli.commands.values())
|
||||
def test_commands_have_docstrings(command):
|
||||
assert command.__doc__, '{} is missing a docstring'.format(command)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue