Skip to content

Commit e8968d0

Browse files
Vasil ChimevVasil Chimev
Vasil Chimev
authored and
Vasil Chimev
committed
Add tearDownClass().
1 parent 3a698b3 commit e8968d0

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

tests/livesync_ios.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88

99
class LiveSync_iOS(unittest.TestCase):
1010

11+
# LiveSync Tests on Android Emulator
12+
1113
def setUp(self):
1214

1315
print ""

tests/livesync_linux.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,16 @@
44
from helpers._os_lib import CleanupFolder, replace, catAppFile
55
from helpers._tns_lib import androidRuntimePath, \
66
CreateProjectAndAddPlatform, LiveSync, Run
7-
from helpers.device import GivenRunningEmulator
7+
from helpers.device import GivenRunningEmulator, StopEmulators
88

99
class LiveSync_Linux(unittest.TestCase):
1010

1111
# LiveSync Tests on Android Emulator
1212

13+
@classmethod
14+
def setUpClass(cls):
15+
super(LiveSync_Linux, cls).setUpClass()
16+
1317
def setUp(self):
1418

1519
print ""
@@ -24,6 +28,11 @@ def setUp(self):
2428
def tearDown(self):
2529
pass
2630

31+
@classmethod
32+
def tearDownClass(cls):
33+
super(LiveSync_Linux, cls).tearDownClass()
34+
StopEmulators()
35+
2736
def test_001_LiveSync_Android_XmlFile(self):
2837
CreateProjectAndAddPlatform(projName="TNS_App", platform="android", frameworkPath=androidRuntimePath)
2938
Run(platform="android", path="TNS_App")

0 commit comments

Comments
 (0)