Skip to content

Commit 2f59f0c

Browse files
author
dtopuzov
committed
Fix PEP8 errors
1 parent c8c70eb commit 2f59f0c

File tree

1 file changed

+15
-16
lines changed

1 file changed

+15
-16
lines changed

tests/emulate/emulate_android.py

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def setUp(self):
3333
print "#####"
3434
print ""
3535

36-
Emulator.stop_emulators();
36+
Emulator.stop_emulators()
3737
Folder.cleanup('./TNSAppNoPlatform')
3838
Folder.cleanup('./TNS_App/platforms/android/build/outputs')
3939

@@ -42,18 +42,17 @@ def tearDown(self):
4242

4343
@classmethod
4444
def tearDownClass(cls):
45-
Emulator.stop_emulators();
45+
Emulator.stop_emulators()
4646
Folder.cleanup('./TNS_App')
4747

4848
@unittest.skip("Skipped because of https://github.com/NativeScript/nativescript-cli/issues/352")
4949
def test_001_emulate_android_in_running_emulator(self):
5050

51-
Emulator.ensure_available();
51+
Emulator.ensure_available()
5252

53-
Tns.create_app_platform_add(app_name="TNS_App", \
53+
Tns.create_app_platform_add(app_name="TNS_App",
5454
platform="android", framework_path=ANDROID_RUNTIME_PATH)
55-
output = run(TNS_PATH + " emulate android --path TNS_App --timeout 600 --justlaunch", \
56-
timeout=660)
55+
output = run(TNS_PATH + " emulate android --path TNS_App --timeout 600 --justlaunch", timeout=660)
5756
assert "Project successfully prepared" in output
5857
assert "Project successfully built" in output
5958

@@ -68,11 +67,11 @@ def test_001_emulate_android_in_running_emulator(self):
6867

6968
def test_002_emulate_android_release(self):
7069

71-
output = run(TNS_PATH + " emulate android --avd Api19 " + \
72-
"--keyStorePath " + ANDROID_KEYSTORE_PATH + \
73-
" --keyStorePassword " + ANDROID_KEYSTORE_PASS + \
74-
" --keyStoreAlias " + ANDROID_KEYSTORE_ALIAS + \
75-
" --keyStoreAliasPassword " + ANDROID_KEYSTORE_ALIAS_PASS + \
70+
output = run(TNS_PATH + " emulate android --avd Api19 " +
71+
"--keyStorePath " + ANDROID_KEYSTORE_PATH +
72+
" --keyStorePassword " + ANDROID_KEYSTORE_PASS +
73+
" --keyStoreAlias " + ANDROID_KEYSTORE_ALIAS +
74+
" --keyStoreAliasPassword " + ANDROID_KEYSTORE_ALIAS_PASS +
7675
" --release --path TNS_App --timeout 600 --justlaunch", timeout=660)
7776
assert "Project successfully prepared" in output
7877
assert "Project successfully built" in output
@@ -91,7 +90,7 @@ def test_200_emulate_android_inside_project_and_specify_emulator_name(self):
9190

9291
current_dir = os.getcwd()
9392
os.chdir(os.path.join(current_dir, "TNS_App"))
94-
output = run(os.path.join("..", TNS_PATH) + \
93+
output = run(os.path.join("..", TNS_PATH) +
9594
" emulate android --avd Api19 --timeout 600 --justlaunch", timeout=660)
9695
os.chdir(current_dir)
9796
assert "Project successfully prepared" in output
@@ -105,8 +104,8 @@ def test_200_emulate_android_inside_project_and_specify_emulator_name(self):
105104

106105
def test_300_emulate_android_platform_not_added(self):
107106
Tns.create_app(app_name="TNSAppNoPlatform")
108-
output = run(TNS_PATH + \
109-
" emulate android --avd Api19 --timeout 600 --justlaunch --path TNSAppNoPlatform", \
107+
output = run(TNS_PATH +
108+
" emulate android --avd Api19 --timeout 600 --justlaunch --path TNSAppNoPlatform",
110109
timeout=660)
111110
assert "Copying template files..." in output
112111
assert "Project successfully created." in output
@@ -121,7 +120,7 @@ def test_300_emulate_android_platform_not_added(self):
121120

122121
def test_400_emulate_invalid_platform(self):
123122
output = run(TNS_PATH + \
124-
" emulate invalidPlatform --path TNS_App --timeout 600 --justlaunch", \
123+
" emulate invalidPlatform --path TNS_App --timeout 600 --justlaunch",
125124
timeout=660)
126125
assert "The input is not valid sub-command for 'emulate' command" in output
127126
assert "Usage" in output
@@ -130,7 +129,7 @@ def test_400_emulate_invalid_platform(self):
130129
"Skipped because of https://github.com/NativeScript/nativescript-cli/issues/289")
131130
def test_401_emulate_invalid_avd(self):
132131
output = run(TNS_PATH + \
133-
" emulate android --avd invaliddevice_id --path TNS_App --timeout 600 --justlaunch", \
132+
" emulate android --avd invaliddevice_id --path TNS_App --timeout 600 --justlaunch",
134133
timeout=660)
135134
# TODO: Modify assert when issue is fixed
136135
assert "'invalidPlatform' is not valid sub-command for 'emulate' command" in output

0 commit comments

Comments
 (0)