From 6577fb3ea6e76d9e1af86432f29aaca21da9017d Mon Sep 17 00:00:00 2001 From: Rio Liu Date: Mon, 30 Aug 2021 23:52:37 -0400 Subject: [PATCH] fix flake8 --- tests/ceo/cli/test_positions.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/tests/ceo/cli/test_positions.py b/tests/ceo/cli/test_positions.py index bfb548e8a..453685f57 100644 --- a/tests/ceo/cli/test_positions.py +++ b/tests/ceo/cli/test_positions.py @@ -1,15 +1,17 @@ from click.testing import CliRunner from ceo.cli import cli + def test_positions(cli_setup): runner = CliRunner() # Setup test data for i in range(5): - runner.invoke(cli, ['members', 'add', f'test_{i}', '--cn', f'Test {i}', '--program', 'Math', '--terms', '1' ], input='y\n') + runner.invoke(cli, ['members', 'add', f'test_{i}', '--cn', f'Test {i}', '--program', 'Math', '--terms', '1'], input='y\n') runner.invoke(cli, ['groups', 'add', 'exec', '--description', 'Test Group'], input='y\n') - result = runner.invoke(cli, ['positions', 'set', + result = runner.invoke(cli, [ + 'positions', 'set', '--president', 'test_0', '--vice-president', 'test_1', '--sysadmin', 'test_2', @@ -18,8 +20,7 @@ def test_positions(cli_setup): ], input='y\n') assert result.exit_code == 0 - assert result.output == \ -''' + assert result.output == ''' The positions will be updated: president: test_0 vice_president: test_1 @@ -36,12 +37,11 @@ Update positions in LDAP... Done Update executive group in LDAP... Done Subscribe to mailing lists... Done Transaction successfully completed. -'''[1:] +'''[1:] # noqa: W291 result = runner.invoke(cli, ['positions', 'get']) assert result.exit_code == 0 - assert result.output == \ -''' + assert result.output == ''' president: test_0 secretary: test_3 sysadmin: test_2