Skip to content

Commit 0f3aefe

Browse files
author
dtopuzov
committed
Fix tests
1 parent 2f59f0c commit 0f3aefe

File tree

2 files changed

+7
-15
lines changed

2 files changed

+7
-15
lines changed

tests/emulate/emulate_ios.py

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -41,17 +41,16 @@ def tearDownClass(cls):
4141
def test_001_emulate_list_devices(self):
4242
output = run("xcodebuild -version")
4343
if "6." in output:
44-
output = run(TNS_PATH + \
44+
output = run(TNS_PATH +
4545
" emulate ios --availableDevices --path TNS_App --justlaunch")
4646
assert "iPhone-6" in output
4747
else:
48-
output = run(TNS_PATH + \
48+
output = run(TNS_PATH +
4949
" emulate ios --availableDevices --path TNS_App --justlaunch")
5050
assert "iPhone 6 81" in output
5151

5252
def test_002_emulate_ios(self):
53-
output = run(
54-
TNS_PATH +
53+
output = run(TNS_PATH +
5554
" emulate ios --device 'iPhone 6 81' --path TNS_App --justlaunch")
5655
assert "Project successfully prepared" in output
5756
assert "Project successfully built" in output
@@ -62,8 +61,7 @@ def test_002_emulate_ios(self):
6261
assert Process.is_running("Simulator")
6362

6463
def test_003_emulate_ios_release(self):
65-
output = run(
66-
TNS_PATH +
64+
output = run(TNS_PATH +
6765
" emulate ios --device 'iPhone 6 81' --path TNS_App --release --justlaunch")
6866
assert "Project successfully prepared" in output
6967
assert "CONFIGURATION Release" in output
@@ -76,8 +74,7 @@ def test_003_emulate_ios_release(self):
7674

7775
def test_210_emulate_ios_patform_not_added(self):
7876
Tns.create_app(app_name="TNS_AppNoPlatform")
79-
output = run(
80-
TNS_PATH +
77+
output = run(TNS_PATH +
8178
" emulate ios --device 'iPhone 6 81' --path TNS_AppNoPlatform --justlaunch")
8279
assert "Copying template files..." in output
8380
assert "Project successfully created." in output
@@ -90,9 +87,6 @@ def test_210_emulate_ios_patform_not_added(self):
9087
assert Process.is_running("Simulator")
9188

9289
def test_400_emulate_invalid_device(self):
93-
output = run(
94-
TNS_PATH +
90+
output = run(TNS_PATH +
9591
" emulate ios --device invalidDevice --path TNS_App --justlaunch")
96-
assert "Project successfully prepared" in output
97-
assert "Project successfully built" in output
98-
assert "Unable to find device invalidDevice" in output
92+
assert "Cannot find device with name: invalidDevice." in output

tests/plugin/plugins_ios_pods.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,6 @@ def test_201_plugin_add_pod_google_maps_before_platform_add_ios(self):
101101
output = Tns.prepare(platform="ios", path="TNS_App", log_trace=True)
102102
assert "The iOS Deployment Target is now 8.0" in output
103103
assert "Successfully prepared plugin googlesdk for ios." in output
104-
assert "Creating project scheme..." in output
105104
assert "Installing pods..." in output
106105

107106
output = run("cat TNS_App/platforms/ios/Podfile")
@@ -149,7 +148,6 @@ def test_202_plugin_add_pod_google_maps_after_platform_add_ios(self):
149148
output = Tns.build(platform="ios", path="TNS_App")
150149
assert "The iOS Deployment Target is now 8.0" in output
151150
assert "Successfully prepared plugin googlesdk for ios." in output
152-
assert "Creating project scheme..." in output
153151
assert "Installing pods..." in output
154152

155153
output = run("cat TNS_App/platforms/ios/Podfile")

0 commit comments

Comments
 (0)