Skip to content

Commit 838c1d1

Browse files
author
Nataliya Hristova
authored
Update assertion after changes in cli output message - Vladimirov/speed up add platform PR (#152)
* Update verification * fix: verification
1 parent d586764 commit 838c1d1

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

core/tns/tns_verifications.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,11 @@ def platform_added(app_name, platform=Platform.NONE, output=None):
150150
# Verify console output is correct
151151
if output is not None:
152152
assert 'Copying template files...' in output
153-
assert 'Project successfully created.' in output
153+
if platform is Platform.ANDROID:
154+
assert 'Platform android successfully added' in output
155+
if platform is Platform.IOS:
156+
assert 'Platform ios successfully added.' in output
157+
assert 'Project successfully created.' not in output
154158

155159
# This is to handle test for app with space.
156160
# In this case we put app name inside ''.

0 commit comments

Comments
 (0)