From 67726cf735667d552a63c0991b3d1cf924c0ae03 Mon Sep 17 00:00:00 2001 From: butomo1989 Date: Fri, 21 Apr 2017 15:27:54 +0200 Subject: [PATCH] Updated unit test --- src/tests/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/tests/__init__.py b/src/tests/__init__.py index fdefef7..65cd5a4 100644 --- a/src/tests/__init__.py +++ b/src/tests/__init__.py @@ -47,6 +47,7 @@ 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)