Skip to content

Commit c7b5c08

Browse files
author
Miroslava Ivanova
committed
update tests for help
1 parent ba34537 commit c7b5c08

File tree

1 file changed

+6
-19
lines changed

1 file changed

+6
-19
lines changed

tests/build/common/help_tests.py

+6-19
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ def test_104_platform_remove_help(self):
6363

6464
HelpTests.verify_help(output)
6565
assert "platform remove" in output
66-
assert "Platform" in output
6766
assert "android" in output
6867

6968
if CURRENT_OS == OSType.OSX:
@@ -79,13 +78,12 @@ def test_105_update_help(self):
7978
HelpTests.verify_help(output)
8079
assert "platform update" in output
8180
assert "Android selected runtime" in output
81+
assert "Attributes" in output
8282

8383
if CURRENT_OS == OSType.OSX:
8484
assert "iOS latest runtime" in output
85-
assert "Attributes" in output
8685
else:
8786
assert "iOS latest runtime" not in output
88-
assert "Attributes" not in output
8987

9088
def test_106_prepare_help(self):
9189
output = Tns.run_tns_command("prepare --help")
@@ -120,16 +118,17 @@ def test_108_deploy_help(self):
120118

121119
HelpTests.verify_help(output)
122120
assert "deploy" in output
123-
assert "Options for Android" in output
124121
assert "device" in output
125122
assert "release" in output
126123

127124
if CURRENT_OS == OSType.OSX:
128125
assert "Options for iOS" in output
129126
assert "Attributes" in output
127+
assert "Options for Android" in output
130128
else:
131129
assert "Options for iOS" not in output
132130
assert "Attributes" not in output
131+
assert "Options" in output
133132

134133
def test_109_run_help(self):
135134
output = Tns.run_tns_command("run --help")
@@ -139,11 +138,7 @@ def test_109_run_help(self):
139138
assert "Options" in output
140139
assert "release" in output
141140
assert "device" in output
142-
143-
if CURRENT_OS == OSType.OSX:
144-
assert "Attributes" in output
145-
else:
146-
assert "Attributes" not in output
141+
assert "Attributes" in output
147142

148143
def test_110_debug_help(self):
149144
output = Tns.run_tns_command("debug --help")
@@ -192,11 +187,7 @@ def test_113_plugin_help(self):
192187
assert "update" in output
193188
assert "find" in output
194189
assert "search" in output
195-
196-
if CURRENT_OS == OSType.OSX:
197-
assert "Attributes" in output
198-
else:
199-
assert "Attributes" not in output
190+
assert "Attributes" in output
200191

201192
def test_114_device_log_help(self):
202193
output = Tns.run_tns_command("device log --help")
@@ -205,8 +196,4 @@ def test_114_device_log_help(self):
205196
assert "device log" in output
206197
assert "Options" in output
207198
assert "device" in output
208-
209-
if CURRENT_OS == OSType.OSX:
210-
assert "Attributes" in output
211-
else:
212-
assert "Attributes" not in output
199+
assert "Attributes" in output

0 commit comments

Comments
 (0)