From 96269b99a17b96b16d8fdf2655b8521d7afc8972 Mon Sep 17 00:00:00 2001 From: Chenxiong Qi Date: Jul 25 2018 09:20:05 +0000 Subject: Fix flake8 errors and typo in tests Signed-off-by: Chenxiong Qi --- diff --git a/test/test_cli.py b/test/test_cli.py index accddb9..69f657a 100644 --- a/test/test_cli.py +++ b/test/test_cli.py @@ -1764,6 +1764,6 @@ class TestBodhiOverrideExtend(CliTestCase): with patch('sys.argv', new=cli_cmd): with patch('sys.stderr', new=StringIO()): with self.assertRaises(SystemExit): - cli = self.new_cli() + self.new_cli() output = sys.stderr.getvalue() self.assertIn('Invalid expiration date', output) diff --git a/test/test_retire.py b/test/test_retire.py index eb7d9ba..dc205cc 100644 --- a/test/test_retire.py +++ b/test/test_retire.py @@ -95,7 +95,7 @@ class RetireTestCase(unittest.TestCase): def test_package_is_retired_already(self): self._setup_repo('ssh://git@pkgs.example.com/fedpkg') with open(os.path.join(self.tmpdir, 'dead.package'), 'w') as f: - f.write('deak package') + f.write('dead package') args = ['fedpkg', '--release=master', 'retire', 'my reason'] client = self._fake_client(args)