Remove a part of test_verbose unit test

The part of the test which tests passing --silent and --verbose
arguments together doesn't belong to refstack_client as it doesn't
contain any code dealing with this arg combination. The arg
combination is parsed outside of the refstack_client scope where
it should be also tested.

Change-Id: I8bceb2e171eaafb8a9866fd6bcef1ee2f647fd4c
This commit is contained in:
Martin Kopec
2020-12-14 11:03:31 +00:00
parent b93f14f4e6
commit bd55664f19

View File

@@ -118,13 +118,6 @@ class TestRefstackClient(unittest.TestCase):
client._prep_test()
self.assertEqual(client.logger.level, logging.WARNING)
args = rc.parse_cli_args(self.mock_argv(silent='-s'))
args = rc.parse_cli_args(self.mock_argv(verbose='-v'))
client = rc.RefstackClient(args)
client.tempest_dir = self.test_path
client._prep_test()
self.assertRaises(SystemExit, client.__init__(args))
def test_get_next_stream_subunit_output_file(self):
"""
Test getting the subunit file from an existing .testrepository