From 02f984c21c3cee9628c298860f7026e8fabc19a8 Mon Sep 17 00:00:00 2001 From: Nikolay Ustinov Date: Tue, 12 Dec 2017 11:29:18 +0700 Subject: [PATCH] Disabled collect logcat by default (#122) --- contesto/basis/test_case.py | 2 +- contesto/utils/collect.py | 2 +- setup.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/contesto/basis/test_case.py b/contesto/basis/test_case.py index 5cbf566..87a58af 100644 --- a/contesto/basis/test_case.py +++ b/contesto/basis/test_case.py @@ -140,7 +140,7 @@ def _setup_test(self): log.info('sessionId: %s', self.driver.session_id) log.info('capabilities: %s' % self.driver.capabilities) - if config.utils.get('collect_logcat', True): + if config.utils.get('collect_logcat'): self.logcat = logcat.Logcat(self.driver) if config.utils.get('record_screencast') and config.utils.get('record_screencast_autostart', True): diff --git a/contesto/utils/collect.py b/contesto/utils/collect.py index 233b675..18fb660 100644 --- a/contesto/utils/collect.py +++ b/contesto/utils/collect.py @@ -58,7 +58,7 @@ def _collect_error_details(): except: log.exception('Error collecting page source') - if config.utils.get('collect_logcat', True) and hasattr(current_test, 'logcat'): + if hasattr(current_test, 'logcat'): try: current_test.logcat.collect() except: diff --git a/setup.py b/setup.py index 0b5c7c1..72b1ec0 100644 --- a/setup.py +++ b/setup.py @@ -10,7 +10,7 @@ 'config/*.ini' ], }, - "version": "0.3.0", + "version": "0.3.1", "install_requires": [ "selenium==2.52.0", "Appium-Python-Client==0.24",