Skip to content

Commit

Permalink
Fix some failing tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
amjith committed Jan 15, 2019
1 parent 16345d6 commit 11a68b4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/test_main.py
Expand Up @@ -27,14 +27,14 @@ def test_execute_arg(executor):
result = runner.invoke(cli, args=CLI_ARGS + ["-e", sql])

assert result.exit_code == 0
assert "a\nabc\n" in result.output
assert '"abc"' in result.output

result = runner.invoke(cli, args=CLI_ARGS + ["--execute", sql])

assert result.exit_code == 0
assert "a\nabc\n" in result.output
assert '"abc"' in result.output

expected = "a\nabc\n"
expected = '"a"\n"abc"\n'

assert expected in result.output

Expand Down Expand Up @@ -78,7 +78,7 @@ def test_batch_mode(executor):
result = runner.invoke(cli, args=CLI_ARGS, input=sql)

assert result.exit_code == 0
assert "count(*)\n3\na\nabc\n" in "".join(result.output)
assert '"count(*)"\n"3"\n"a"\n"abc"\n' in "".join(result.output)


@dbtest
Expand Down

0 comments on commit 11a68b4

Please sign in to comment.