diff options
author | Irina Truong <i.chernyavska@gmail.com> | 2017-06-26 13:03:48 -0700 |
---|---|---|
committer | Irina Truong <i.chernyavska@gmail.com> | 2017-06-26 13:03:48 -0700 |
commit | 25dd0360d07fcefaad2d492b700c3a32c5d72c92 (patch) | |
tree | 1e66561499859af6f675ed5857c40fc333a9cc0b | |
parent | 8353f1ef2dba2fc83a0b614d30c29ab9b7db7be6 (diff) |
PEP8.
-rw-r--r-- | tests/features/steps/expanded.py | 24 |
1 files changed, 10 insertions, 14 deletions
diff --git a/tests/features/steps/expanded.py b/tests/features/steps/expanded.py index 690c0a2b..31622edf 100644 --- a/tests/features/steps/expanded.py +++ b/tests/features/steps/expanded.py @@ -1,8 +1,9 @@ # -*- coding: utf-8 -""" -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. +"""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 __future__ import unicode_literals @@ -13,12 +14,11 @@ from textwrap import dedent @when('we prepare the test data') def step_prepare_data(context): - """ - Create table, insert a record. - """ + """Create table, insert a record.""" context.cli.sendline('drop table if exists a;') wrappers.wait_prompt(context) - context.cli.sendline('create table a(x integer, y real, z numeric(10, 4));') + context.cli.sendline( + 'create table a(x integer, y real, z numeric(10, 4));') wrappers.expect_pager(context, 'CREATE TABLE\r\n', timeout=2) context.cli.sendline('''insert into a(x, y, z) values(1, 1.0, 1.0);''') wrappers.expect_pager(context, 'INSERT 0 1\r\n', timeout=2) @@ -26,9 +26,7 @@ def step_prepare_data(context): @when('we set expanded {mode}') def step_set_expanded(context, mode): - """ - Set expanded to mode. - """ + """Set expanded to mode.""" context.cli.sendline('\\' + 'x {}'.format(mode)) wrappers.expect_exact(context, 'Expanded display is', timeout=2) wrappers.wait_prompt(context) @@ -36,9 +34,7 @@ def step_set_expanded(context, mode): @then('we see {which} data selected') def step_see_data(context, which): - """ - Select data from expanded test table. - """ + """Select data from expanded test table.""" if which == 'expanded': wrappers.expect_pager( context, |