From a69815faa0d67efe11534ee05abfbb38035f74d7 Mon Sep 17 00:00:00 2001 From: Ryan Petrello Date: Thu, 9 Feb 2017 15:38:52 -0500 Subject: [PATCH] fix a typo in a log handler test --- awx/main/tests/unit/utils/test_handlers.py | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/awx/main/tests/unit/utils/test_handlers.py b/awx/main/tests/unit/utils/test_handlers.py index 5a30cdb316..2e0fcbe8d5 100644 --- a/awx/main/tests/unit/utils/test_handlers.py +++ b/awx/main/tests/unit/utils/test_handlers.py @@ -40,13 +40,15 @@ def ok200_adapter(): return OK200Adapter() -@pytest.mark.parametrize('async, implementation', [ - (True, FuturesSession), - (True, requests.Session) -]) -def test_https_logging_handler_requests_implementation(async, implementation): - handler = HTTPSHandler(async=async) - assert isinstance(handler.session, implementation) +def test_https_logging_handler_requests_sync_implementation(): + handler = HTTPSHandler(async=False) + assert not isinstance(handler.session, FuturesSession) + assert isinstance(handler.session, requests.Session) + + +def test_https_logging_handler_requests_async_implementation(): + handler = HTTPSHandler(async=True) + assert isinstance(handler.session, FuturesSession) @pytest.mark.parametrize('param', PARAM_NAMES.keys())