Skip to content

Commit c45b3c2

Browse files
committed
fix: lint errors
1 parent e389d48 commit c45b3c2

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

core_tests/unit/product/test_preview_helpers.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,10 @@
66

77

88
# noinspection PyMethodMayBeStatic
9-
class SyncMessagesTests(unittest.TestCase):
9+
class PreviewHelperTests(unittest.TestCase):
1010
current_folder = os.path.dirname(os.path.realpath(__file__))
1111

12+
@unittest.skipIf(os.environ.get('TRAVIS', None) is not None, 'Skip on Travis.')
1213
def test_01_constants(self):
1314
text = File.read(path=os.path.join(self.current_folder, 'preview.log'))
1415
url = Preview.get_url(output=text)

products/nativescript/preview_helpers.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,8 @@ def get_url(output):
6363
# pylint: disable=no-member
6464
url = urllib.unquote(url)
6565
else:
66+
# pylint: disable=no-name-in-module
67+
# pylint: disable=import-error
6668
from urllib.parse import unquote
6769
url = unquote(url, 'UTF-8')
6870
url = url.replace(r'?', r'\?')

0 commit comments

Comments
 (0)