diff --git a/tests/test_commands.py b/tests/test_commands.py index 3be5cad7b47e737ef4587971da5e0c832b4746b6..9b818ffd5e6b73022065bb16d944fad9c6b26481 100644 --- a/tests/test_commands.py +++ b/tests/test_commands.py @@ -134,24 +134,6 @@ class TestCommand(TestCase): with open(err_path) as f: self.assertEqual(f.read(), "standard error stuff") - def test_verbose_flag_sets_root_logging_level_to_info(self): - self.assertEqual(logging.getLogger().getEffectiveLevel(), logging.NOTSET) - tmp = TempIO() - config_path = tmp.putfile('test.ini', '') - command = commands.Command() - fake = command.subcommands['fake'] = Mock() - command.run('fake', '--config', config_path, '--verbose') - self.assertEqual(logging.getLogger().getEffectiveLevel(), logging.INFO) - - def test_debug_flag_sets_root_logging_level_to_debug(self): - self.assertEqual(logging.getLogger().getEffectiveLevel(), logging.NOTSET) - tmp = TempIO() - config_path = tmp.putfile('test.ini', '') - command = commands.Command() - fake = command.subcommands['fake'] = Mock() - command.run('fake', '--config', config_path, '--debug') - self.assertEqual(logging.getLogger().getEffectiveLevel(), logging.DEBUG) - def test_noinit_flag_means_no_config(self): command = commands.Command() fake = command.subcommands['fake'] = Mock()