mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-11-22 09:59:42 +01: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,
|
drop_foreign_key,
|
||||||
sql,
|
sql,
|
||||||
):
|
):
|
||||||
|
"Transform a table beyond the capabilities of ALTER TABLE"
|
||||||
db = sqlite_utils.Database(path)
|
db = sqlite_utils.Database(path)
|
||||||
types = {}
|
types = {}
|
||||||
kwargs = {}
|
kwargs = {}
|
||||||
|
|
|
||||||
|
|
@ -20,3 +20,8 @@ def documented_commands():
|
||||||
@pytest.mark.parametrize("command", cli.cli.commands.keys())
|
@pytest.mark.parametrize("command", cli.cli.commands.keys())
|
||||||
def test_commands_are_documented(documented_commands, command):
|
def test_commands_are_documented(documented_commands, command):
|
||||||
assert command in documented_commands
|
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