Skip to content

Commit

Permalink
Use latest PyTest and caplog fixture improvement instead of personal …
Browse files Browse the repository at this point in the history
…log logic
  • Loading branch information
lmazuel committed Apr 30, 2018
1 parent eb5207e commit 215a44f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
9 changes: 1 addition & 8 deletions azure-sdk-testutils/devtools_testutils/mgmt_testcase.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,6 @@
from . import mgmt_settings_fake as fake_settings


should_log = os.getenv('SDK_TESTS_LOG', '0')
if should_log.lower() == 'true' or should_log == '1':
import logging
logger = logging.getLogger('msrest')
logger.setLevel(logging.DEBUG)
logger.addHandler(logging.StreamHandler())


class HttpStatusCode(object):
OK = 200
Created = 201
Expand Down Expand Up @@ -156,6 +148,7 @@ def create_basic_client(self, client_class, **kwargs):
)
if self.is_playback():
client.config.long_running_operation_timeout = 0
client.config.enable_http_logger = True
return client

def create_mgmt_client(self, client_class, **kwargs):
Expand Down
2 changes: 1 addition & 1 deletion azure-sdk-testutils/test-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
-r ../requirements.txt

pytest-cov
pytest>=3.2.0
pytest>=3.5.1
azure-devtools>=0.4.1
vcrpy
readme_renderer
Expand Down

0 comments on commit 215a44f

Please sign in to comment.