mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-07-24 18:04:32 +02:00
sqlite-utils table_names blah.db is now tables blah.db
Travis tests were failing because on OS X the command was this: sqlite-utils table_names blah.db But in Travis CI the command was this: sqlite-utils table-names blah.db Renaming it to tables fixes this inconsistency.
This commit is contained in:
parent
42b2b4b785
commit
9501ba4bf1
4 changed files with 13 additions and 13 deletions
|
|
@ -20,20 +20,20 @@ def db_path(tmpdir):
|
|||
return path
|
||||
|
||||
|
||||
def test_table_names(db_path):
|
||||
result = CliRunner().invoke(cli.cli, ["table_names", db_path])
|
||||
def test_tables(db_path):
|
||||
result = CliRunner().invoke(cli.cli, ["tables", db_path])
|
||||
assert "Gosh\nGosh2" == result.output.strip()
|
||||
|
||||
|
||||
def test_table_names_fts4(db_path):
|
||||
def test_tables_fts4(db_path):
|
||||
Database(db_path)["Gosh"].enable_fts(["c2"], fts_version="FTS4")
|
||||
result = CliRunner().invoke(cli.cli, ["table_names", "--fts4", db_path])
|
||||
result = CliRunner().invoke(cli.cli, ["tables", "--fts4", db_path])
|
||||
assert "Gosh_fts" == result.output.strip()
|
||||
|
||||
|
||||
def test_table_names_fts5(db_path):
|
||||
def test_tables_fts5(db_path):
|
||||
Database(db_path)["Gosh"].enable_fts(["c2"], fts_version="FTS5")
|
||||
result = CliRunner().invoke(cli.cli, ["table_names", "--fts5", db_path])
|
||||
result = CliRunner().invoke(cli.cli, ["tables", "--fts5", db_path])
|
||||
assert "Gosh_fts" == result.output.strip()
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue