Skip to content

Commit 0453ec8

Browse files
committed
fix: lint errors
1 parent 92b6920 commit 0453ec8

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

products/nativescript/tns.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
from core.utils.run import run
1414
from products.nativescript.app import App
1515
from products.nativescript.tns_assert import TnsAssert
16-
from products.nativescript.tns_paths import TnsPaths
1716
from products.nativescript.tns_logs import TnsLogs
17+
from products.nativescript.tns_paths import TnsPaths
1818

1919

2020
class Tns(object):
@@ -388,8 +388,8 @@ def preview(app_name, bundle=False, hmr=False, aot=False, uglify=False, wait=Fal
388388
result = Tns.exec_command(command='preview', path=app_name, bundle=bundle, hmr=hmr, aot=aot, uglify=uglify,
389389
wait=wait, log_trace=log_trace, timeout=timeout)
390390
if verify:
391-
strings = ['Use NativeScript Playground app and scan the QR code above to preview '\
392-
'the application on your device']
393-
TnsLogs.wait_for_log(result.log_file, strings)
391+
strings = [
392+
'Use NativeScript Playground app and scan the QR code above to preview the application on your device']
393+
TnsLogs.wait_for_log(log_file=result.log_file, string_list=strings)
394394

395395
return result

tests/code_sharing/test_ng_generate_e2e.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ def workflow(app_name, device, platform, shared):
8888
File.replace(path=app_routing_module_path, old_string='HomeComponent', new_string='ComponentTestComponent')
8989

9090
# Verify app is updated
91-
logs = [app_module_name, app_routing_module_name, 'Successfully synced application']
91+
logs = [app_module_name.replace('.tns', ''), app_routing_module_name.replace('.tns', ''),
92+
'Successfully synced application']
9293
TnsLogs.wait_for_log(log_file=result.log_file, string_list=logs, timeout=120)
9394
device.wait_for_text(text='component-test works!')

tests/code_sharing/test_ng_generate_shared.py

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
"""
44
import unittest
55

6-
from core.base_test.tns_run_test import TnsRunTest
76
from core.base_test.tns_test import TnsTest
87
from core.settings import Settings
98
from core.utils.file_utils import Folder

0 commit comments

Comments
 (0)