Skip to content

Commit

Permalink
Fix sql_output unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin Schmeichel committed Aug 7, 2024
1 parent fb44577 commit d532221
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/test_tabular_output.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def description(self):
mycli.formatter.query = "SELECT * FROM `table`"
output = mycli.format_output(None, FakeCursor(), headers)
assert "\n".join(output) == dedent('''\
INSERT INTO table (`letters`, `number`, `optional`, `float`, `binary`) VALUES
INSERT INTO `table` (`letters`, `number`, `optional`, `float`, `binary`) VALUES
('abc', 1, NULL, 10.0e0, X'aa')
, ('d', 456, '1', 0.5e0, X'aabb')
;''')
Expand All @@ -112,7 +112,7 @@ def description(self):
mycli.formatter.query = "SELECT * FROM `database`.`table`"
output = mycli.format_output(None, FakeCursor(), headers)
assert "\n".join(output) == dedent('''\
INSERT INTO database.table (`letters`, `number`, `optional`, `float`, `binary`) VALUES
INSERT INTO `database`.`table` (`letters`, `number`, `optional`, `float`, `binary`) VALUES
('abc', 1, NULL, 10.0e0, X'aa')
, ('d', 456, '1', 0.5e0, X'aabb')
;''')

0 comments on commit d532221

Please sign in to comment.