Skip to content

Commit 215a44f

Browse files
committed
Use latest PyTest and caplog fixture improvement instead of personal log logic
1 parent eb5207e commit 215a44f

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

azure-sdk-testutils/devtools_testutils/mgmt_testcase.py

+1-8
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,6 @@
1818
from . import mgmt_settings_fake as fake_settings
1919

2020

21-
should_log = os.getenv('SDK_TESTS_LOG', '0')
22-
if should_log.lower() == 'true' or should_log == '1':
23-
import logging
24-
logger = logging.getLogger('msrest')
25-
logger.setLevel(logging.DEBUG)
26-
logger.addHandler(logging.StreamHandler())
27-
28-
2921
class HttpStatusCode(object):
3022
OK = 200
3123
Created = 201
@@ -156,6 +148,7 @@ def create_basic_client(self, client_class, **kwargs):
156148
)
157149
if self.is_playback():
158150
client.config.long_running_operation_timeout = 0
151+
client.config.enable_http_logger = True
159152
return client
160153

161154
def create_mgmt_client(self, client_class, **kwargs):

azure-sdk-testutils/test-requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
-r ../requirements.txt
22

33
pytest-cov
4-
pytest>=3.2.0
4+
pytest>=3.5.1
55
azure-devtools>=0.4.1
66
vcrpy
77
readme_renderer

0 commit comments

Comments
 (0)