Add basicConfig handler to unit tests

pull/17119/head
Richard Belleville 6 years ago
parent e57c10d9f0
commit 619f7e767b
  1. 1
      src/python/grpcio_tests/tests/unit/_api_test.py
  2. 1
      src/python/grpcio_tests/tests/unit/_auth_context_test.py
  3. 1
      src/python/grpcio_tests/tests/unit/_auth_test.py
  4. 2
      src/python/grpcio_tests/tests/unit/_channel_args_test.py
  5. 2
      src/python/grpcio_tests/tests/unit/_channel_close_test.py
  6. 2
      src/python/grpcio_tests/tests/unit/_channel_connectivity_test.py
  7. 2
      src/python/grpcio_tests/tests/unit/_channel_ready_future_test.py
  8. 2
      src/python/grpcio_tests/tests/unit/_compression_test.py
  9. 3
      src/python/grpcio_tests/tests/unit/_credentials_test.py
  10. 2
      src/python/grpcio_tests/tests/unit/_empty_message_test.py
  11. 2
      src/python/grpcio_tests/tests/unit/_exit_scenarios.py
  12. 2
      src/python/grpcio_tests/tests/unit/_exit_test.py
  13. 2
      src/python/grpcio_tests/tests/unit/_interceptor_test.py
  14. 2
      src/python/grpcio_tests/tests/unit/_invalid_metadata_test.py
  15. 2
      src/python/grpcio_tests/tests/unit/_invocation_defects_test.py
  16. 2
      src/python/grpcio_tests/tests/unit/_metadata_code_details_test.py
  17. 2
      src/python/grpcio_tests/tests/unit/_metadata_test.py
  18. 2
      src/python/grpcio_tests/tests/unit/_reconnect_test.py
  19. 2
      src/python/grpcio_tests/tests/unit/_resource_exhausted_test.py
  20. 2
      src/python/grpcio_tests/tests/unit/_rpc_test.py
  21. 2
      src/python/grpcio_tests/tests/unit/_server_ssl_cert_config_test.py
  22. 2
      src/python/grpcio_tests/tests/unit/_server_test.py
  23. 2
      src/python/grpcio_tests/tests/unit/_session_cache_test.py

@ -102,4 +102,5 @@ class ChannelTest(unittest.TestCase):
if __name__ == '__main__':
logging.basicConfig()
unittest.main(verbosity=2)

@ -187,4 +187,5 @@ class AuthContextTest(unittest.TestCase):
if __name__ == '__main__':
logging.basicConfig()
unittest.main(verbosity=2)

@ -77,4 +77,5 @@ class AccessTokenAuthMetadataPluginTest(unittest.TestCase):
if __name__ == '__main__':
logging.basicConfig()
unittest.main(verbosity=2)

@ -15,6 +15,7 @@
from concurrent import futures
import unittest
import logging
import grpc
@ -46,4 +47,5 @@ class ChannelArgsTest(unittest.TestCase):
if __name__ == '__main__':
logging.basicConfig()
unittest.main(verbosity=2)

@ -13,6 +13,7 @@
# limitations under the License.
"""Tests server and client side compression."""
import logging
import threading
import time
import unittest
@ -182,4 +183,5 @@ class ChannelCloseTest(unittest.TestCase):
if __name__ == '__main__':
logging.basicConfig()
unittest.main(verbosity=2)

@ -13,6 +13,7 @@
# limitations under the License.
"""Tests of grpc._channel.Channel connectivity."""
import logging
import threading
import time
import unittest
@ -142,4 +143,5 @@ class ChannelConnectivityTest(unittest.TestCase):
if __name__ == '__main__':
logging.basicConfig()
unittest.main(verbosity=2)

@ -15,6 +15,7 @@
import threading
import unittest
import logging
import grpc
from tests.unit.framework.common import test_constants
@ -85,4 +86,5 @@ class ChannelReadyFutureTest(unittest.TestCase):
if __name__ == '__main__':
logging.basicConfig()
unittest.main(verbosity=2)

@ -15,6 +15,7 @@
import unittest
import logging
import grpc
from grpc import _grpcio_metadata
@ -117,4 +118,5 @@ class CompressionTest(unittest.TestCase):
if __name__ == '__main__':
logging.basicConfig()
unittest.main(verbosity=2)

@ -13,7 +13,9 @@
# limitations under the License.
"""Tests of credentials."""
import unittest
import logging
import grpc
@ -54,4 +56,5 @@ class CredentialsTest(unittest.TestCase):
if __name__ == '__main__':
logging.basicConfig()
unittest.main(verbosity=2)

@ -13,6 +13,7 @@
# limitations under the License.
import unittest
import logging
import grpc
@ -118,4 +119,5 @@ class EmptyMessageTest(unittest.TestCase):
if __name__ == '__main__':
logging.basicConfig()
unittest.main(verbosity=2)

@ -16,6 +16,7 @@
import argparse
import threading
import time
import logging
import grpc
@ -161,6 +162,7 @@ def infinite_request_iterator():
if __name__ == '__main__':
logging.basicConfig()
parser = argparse.ArgumentParser()
parser.add_argument('scenario', type=str)
parser.add_argument(

@ -26,6 +26,7 @@ import sys
import threading
import time
import unittest
import logging
from tests.unit import _exit_scenarios
@ -187,4 +188,5 @@ class ExitTest(unittest.TestCase):
if __name__ == '__main__':
logging.basicConfig()
unittest.main(verbosity=2)

@ -17,6 +17,7 @@ import collections
import itertools
import threading
import unittest
import logging
from concurrent import futures
import grpc
@ -598,4 +599,5 @@ class InterceptorTest(unittest.TestCase):
if __name__ == '__main__':
logging.basicConfig()
unittest.main(verbosity=2)

@ -14,6 +14,7 @@
"""Test of RPCs made against gRPC Python's application-layer API."""
import unittest
import logging
import grpc
@ -131,4 +132,5 @@ class InvalidMetadataTest(unittest.TestCase):
if __name__ == '__main__':
logging.basicConfig()
unittest.main(verbosity=2)

@ -15,6 +15,7 @@
import itertools
import threading
import unittest
import logging
import grpc
@ -271,4 +272,5 @@ class InvocationDefectsTest(unittest.TestCase):
if __name__ == '__main__':
logging.basicConfig()
unittest.main(verbosity=2)

@ -15,6 +15,7 @@
import threading
import unittest
import logging
import grpc
@ -656,4 +657,5 @@ class MetadataCodeDetailsTest(unittest.TestCase):
if __name__ == '__main__':
logging.basicConfig()
unittest.main(verbosity=2)

@ -15,6 +15,7 @@
import unittest
import weakref
import logging
import grpc
from grpc import _channel
@ -237,4 +238,5 @@ class MetadataTest(unittest.TestCase):
if __name__ == '__main__':
logging.basicConfig()
unittest.main(verbosity=2)

@ -15,6 +15,7 @@
import socket
import time
import logging
import unittest
import grpc
@ -100,4 +101,5 @@ class ReconnectTest(unittest.TestCase):
if __name__ == '__main__':
logging.basicConfig()
unittest.main(verbosity=2)

@ -15,6 +15,7 @@
import threading
import unittest
import logging
import grpc
from grpc import _channel
@ -253,4 +254,5 @@ class ResourceExhaustedTest(unittest.TestCase):
if __name__ == '__main__':
logging.basicConfig()
unittest.main(verbosity=2)

@ -16,6 +16,7 @@
import itertools
import threading
import unittest
import logging
from concurrent import futures
import grpc
@ -846,4 +847,5 @@ class RPCTest(unittest.TestCase):
if __name__ == '__main__':
logging.basicConfig()
unittest.main(verbosity=2)

@ -35,6 +35,7 @@ import os
import six
import threading
import unittest
import logging
from concurrent import futures
@ -518,4 +519,5 @@ class ServerSSLCertReloadTestCertConfigReuse(_ServerSSLCertReloadTest):
if __name__ == '__main__':
logging.basicConfig()
unittest.main(verbosity=2)

@ -14,6 +14,7 @@
from concurrent import futures
import unittest
import logging
import grpc
@ -49,4 +50,5 @@ class ServerTest(unittest.TestCase):
if __name__ == '__main__':
logging.basicConfig()
unittest.main(verbosity=2)

@ -15,6 +15,7 @@
import pickle
import unittest
import logging
import grpc
from grpc import _channel
@ -142,4 +143,5 @@ class SSLSessionCacheTest(unittest.TestCase):
if __name__ == '__main__':
logging.basicConfig()
unittest.main(verbosity=2)

Loading…
Cancel
Save