Skip to content

Commit e389d48

Browse files
committed
fix: lint erros
1 parent fc08acc commit e389d48

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

core_tests/unit/utils/run_tests.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
import os
2+
import time
23
import unittest
34

4-
import time
55
from nose.tools import timed
66

7+
from core.enums.os_type import OSType
78
from core.settings import Settings
89
from core.utils.file_utils import File
910
from core.utils.process import Process
@@ -36,6 +37,7 @@ def test_02_run_command_with_redirect(self):
3637
assert result.output == '', 'Output should be empty.'
3738
assert self.current_file in File.read(path=out_file)
3839

40+
@unittest.skipIf(Settings.HOST_OS == OSType.WINDOWS, 'Skip on Windows.')
3941
def test_03_run_command_with_pipe(self):
4042
result = run(cmd='echo "test case" | wc -w ', wait=True, timeout=1)
4143
assert result.exit_code == 0, 'Wrong exit code of successful command.'

products/nativescript/preview_helpers.py

+5-3
Original file line numberDiff line numberDiff line change
@@ -71,14 +71,16 @@ def get_url(output):
7171

7272
@staticmethod
7373
def run_app(url, device_id, platform):
74-
"""Runs your project in the Preview App on simulator or emulator"""
74+
"""
75+
Runs project in the Preview App on simulator or emulator.
76+
"""
7577
if platform is Platform.IOS:
7678
cmd = "xcrun simctl openurl {0} {1}.".format(device_id, url)
7779
result = run(cmd)
7880
assert 'error' not in result.output
7981
elif platform is Platform.ANDROID:
80-
cmd = '{0} -s {1} shell am start -a android.intent.action.VIEW -d \
81-
"{2}" org.nativescript.preview'.format(ADB_PATH, device_id, url)
82+
cmd = '{0} -s {1} shell am start -a android.intent.action.VIEW -d "{2}" org.nativescript.preview' \
83+
.format(ADB_PATH, device_id, url)
8284
result = run(cmd)
8385
assert 'error' not in result.output
8486

0 commit comments

Comments
 (0)