summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIryna Cherniavska <i.chernyavska@gmail.com>2015-07-03 12:27:55 -0700
committerIryna Cherniavska <i.chernyavska@gmail.com>2015-07-03 12:27:55 -0700
commitde116beec973c3dbf8b5fd81d9cadf35a1fb20d9 (patch)
tree546925e05f7da041a420b864644bcfe60d4b6628
parentdaeff7798a6155150a91f74a6c1dd65785a8f32a (diff)
Changed the test to only expect text content of help output, without table formatting.
-rw-r--r--features/fixture_data/help_commands.txt21
-rw-r--r--features/steps/step_definitions.py2
2 files changed, 22 insertions, 1 deletions
diff --git a/features/fixture_data/help_commands.txt b/features/fixture_data/help_commands.txt
new file mode 100644
index 00000000..fcee0775
--- /dev/null
+++ b/features/fixture_data/help_commands.txt
@@ -0,0 +1,21 @@
+Command
+\#
+\?
+\c[onnect] database_name
+\d [pattern]
+\dT[S+] [pattern]
+\df[+] [pattern]
+\di[+] [pattern]
+\dn[+] [pattern]
+\ds[+] [pattern]
+\dt[+] [pattern]
+\du[+] [pattern]
+\dv[+] [pattern]
+\e [file]
+\l
+\n[+] [name]
+\nd [name [query]]
+\ns [name [query]]
+\refresh
+\timing
+\x \ No newline at end of file
diff --git a/features/steps/step_definitions.py b/features/steps/step_definitions.py
index 3d310be4..454d8cc3 100644
--- a/features/steps/step_definitions.py
+++ b/features/steps/step_definitions.py
@@ -72,5 +72,5 @@ def step_see_prompt(context):
@then('we see help output')
def step_see_help(context):
- for expected_line in context.fixture_data['help.txt']:
+ for expected_line in context.fixture_data['help_commands.txt']:
context.cli.expect_exact(expected_line)