Skip to content

Commit

Permalink
refactor(testing): move .table tests to shelltests.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ploMP4 committed Dec 18, 2024
1 parent ba676b6 commit fb2908b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 0 additions & 4 deletions testing/cmdlineshell.test
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,3 @@ do_execsql_test_on_specific_db testing/testing.db schema-2 {
# do_execsql_test_on_specific_db testing/testing.db schema-1 {
# .tables
# } {"products users"}

do_execsql_test_on_specific_db testing/testing.db schema-1 {
.tables us%
} {"users"}
5 changes: 5 additions & 0 deletions testing/shelltests.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,11 @@ def write_to_pipe(line):
CWD: {cwd}/testing
Echo: off""",
)

do_execshell_test(pipe, "test-show-tables", ".tables", "products users")

do_execshell_test(pipe, "test-show-tables-with-pattern", ".tables us%", "users")

# test we can set the null value

write_to_pipe(".open :memory:")
Expand Down

0 comments on commit fb2908b

Please sign in to comment.