Browse Source

Merge pull request #1746 from aanand/remove-logging-test

Remove logging test
Mazz Mosley 10 năm trước cách đây
mục cha
commit
620dac53f6
1 tập tin đã thay đổi với 0 bổ sung7 xóa
  1. 0 7
      tests/unit/cli_test.py

+ 0 - 7
tests/unit/cli_test.py

@@ -1,13 +1,11 @@
 from __future__ import unicode_literals
 from __future__ import absolute_import
-import logging
 import os
 from .. import unittest
 
 import docker
 import mock
 
-from compose.cli import main
 from compose.cli.docopt_command import NoSuchCommand
 from compose.cli.main import TopLevelCommand
 from compose.service import Service
@@ -88,11 +86,6 @@ class CLITestCase(unittest.TestCase):
         with self.assertRaises(NoSuchCommand):
             TopLevelCommand().dispatch(['help', 'nonexistent'], None)
 
-    def test_setup_logging(self):
-        main.setup_logging()
-        self.assertEqual(logging.getLogger().level, logging.DEBUG)
-        self.assertEqual(logging.getLogger('requests').propagate, False)
-
     @mock.patch('compose.cli.main.dockerpty', autospec=True)
     def test_run_with_environment_merged_with_options_list(self, mock_dockerpty):
         command = TopLevelCommand()