Skip to content

Commit 2660139

Browse files
Vasil ChimevVasil Chimev
Vasil Chimev
authored and
Vasil Chimev
committed
Update test_001_transpilation_ts.
1 parent 3fec9ac commit 2660139

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

tests/transpilation_typescript.py

+8-10
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,14 @@
11
'''
2-
Tests for transpilation of typescript in context of Android
2+
Tests for transpilation of typescript in context
33
'''
44

55
# C0103 - Invalid %s name "%s"
66
# C0111 - Missing docstring
77
# R0201 - Method could be a function
88
# R0904 - Too many public methods
9-
10-
# TODO:
11-
# pylint: disable=
9+
# pylint: disable=C0111, R0201
1210

1311
import platform, unittest
14-
# import os
1512

1613
from helpers._os_lib import cleanup_folder, \
1714
file_exists, file_with_extension_exists, is_empty, run_aut
@@ -30,11 +27,11 @@ def setUp(self):
3027
print ""
3128

3229
cleanup_folder('TNS_App')
33-
# TODO:
34-
# def tearDown(self):
35-
# cleanup_folder('TNS_App')
3630

37-
def test_001(self):
31+
def tearDown(self):
32+
cleanup_folder('TNS_App')
33+
34+
def test_001_transpilation_ts(self):
3835
create_project(proj_name="TNS_App", copy_from="template-hello-world-ts")
3936
platform_add(platform="android", framework_path=ANDROID_RUNTIME_PATH, path="TNS_App")
4037

@@ -78,7 +75,7 @@ def test_001(self):
7875
path="TNS_App",
7976
symlink=True)
8077

81-
output = build(platform="ios", path="TNS_App")
78+
output = prepare(platform="ios", path="TNS_App")
8279
assert "Executing before-prepare hook" in output
8380
assert "Found peer TypeScript" in output
8481
assert not "error" in output
@@ -92,6 +89,7 @@ def test_001(self):
9289
"TNS_App/platforms/ios/TNSApp/app", ".ts")
9390
assert not file_with_extension_exists(
9491
"TNS_App/platforms/ios/TNSApp/app/tns_modules", ".ts")
92+
build(platform="ios", path="TNS_App")
9593

9694
# output = run_aut(TNS_PATH + " prepare android --path TNS_App")
9795
# assert "Project successfully prepared" in output

0 commit comments

Comments
 (0)