diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2022-09-21 01:44:43 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2022-09-21 01:44:53 +0000 |
commit | 97864fef063b0960fd3df4529c561296e7805e8c (patch) | |
tree | e0f84cbf2df15e6c8dafb6161babb551d6b6fda6 /tests/features/steps/pgbouncer.py | |
parent | Releasing debian version 3.4.1-1. (diff) | |
download | pgcli-97864fef063b0960fd3df4529c561296e7805e8c.tar.xz pgcli-97864fef063b0960fd3df4529c561296e7805e8c.zip |
Merging upstream version 3.5.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tests/features/steps/pgbouncer.py')
-rw-r--r-- | tests/features/steps/pgbouncer.py | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/features/steps/pgbouncer.py b/tests/features/steps/pgbouncer.py new file mode 100644 index 0000000..f156982 --- /dev/null +++ b/tests/features/steps/pgbouncer.py @@ -0,0 +1,22 @@ +""" +Steps for behavioral style tests are defined in this module. +Each step is defined by the string decorating it. +This string is used to call the step in "*.feature" file. +""" + +from behave import when, then +import wrappers + + +@when('we send "show help" command') +def step_send_help_command(context): + context.cli.sendline("show help") + + +@then("we see the pgbouncer help output") +def see_pgbouncer_help(context): + wrappers.expect_exact( + context, + "SHOW HELP|CONFIG|DATABASES|POOLS|CLIENTS|SERVERS|USERS|VERSION", + timeout=3, + ) |