mirror of
https://github.com/ansible/awx.git
synced 2026-02-03 18:48:12 -03:30
fix a typo in a log handler test
This commit is contained in:
@@ -40,13 +40,15 @@ def ok200_adapter():
|
|||||||
return OK200Adapter()
|
return OK200Adapter()
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.parametrize('async, implementation', [
|
def test_https_logging_handler_requests_sync_implementation():
|
||||||
(True, FuturesSession),
|
handler = HTTPSHandler(async=False)
|
||||||
(True, requests.Session)
|
assert not isinstance(handler.session, FuturesSession)
|
||||||
])
|
assert isinstance(handler.session, 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_async_implementation():
|
||||||
|
handler = HTTPSHandler(async=True)
|
||||||
|
assert isinstance(handler.session, FuturesSession)
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.parametrize('param', PARAM_NAMES.keys())
|
@pytest.mark.parametrize('param', PARAM_NAMES.keys())
|
||||||
|
|||||||
Reference in New Issue
Block a user