Updated unit test

This commit is contained in:
butomo1989 2017-04-21 15:27:54 +02:00
parent e59c28ebd8
commit 67726cf735

View file

@ -47,6 +47,7 @@ class TestApp(TestCase):
@mock.patch('subprocess.Popen') @mock.patch('subprocess.Popen')
def test_run_withhout_appium(self, mocked_avd, mocked_subprocess): def test_run_withhout_appium(self, mocked_avd, mocked_subprocess):
with mock.patch('src.app.appium_run') as mocked_appium: with mock.patch('src.app.appium_run') as mocked_appium:
os.environ['APPIUM'] = str(False)
app.run() app.run()
self.assertTrue(mocked_avd.called) self.assertTrue(mocked_avd.called)
self.assertTrue(mocked_subprocess.called) self.assertTrue(mocked_subprocess.called)