Turn off appium server by default

This commit is contained in:
butomo1989
2017-04-21 15:18:01 +02:00
parent 7ce3cfba96
commit e59c28ebd8
4 changed files with 8 additions and 6 deletions
+1 -1
View File
@@ -37,6 +37,7 @@ class TestApp(TestCase):
@mock.patch('subprocess.Popen')
def test_run_with_appium(self, mocked_avd, mocked_subprocess):
with mock.patch('src.app.appium_run') as mocked_appium:
os.environ['APPIUM'] = str(True)
app.run()
self.assertTrue(mocked_avd.called)
self.assertTrue(mocked_subprocess.called)
@@ -46,7 +47,6 @@ class TestApp(TestCase):
@mock.patch('subprocess.Popen')
def test_run_withhout_appium(self, mocked_avd, mocked_subprocess):
with mock.patch('src.app.appium_run') as mocked_appium:
os.environ['APPIUM'] = str(False)
app.run()
self.assertTrue(mocked_avd.called)
self.assertTrue(mocked_subprocess.called)