mirror of
https://github.com/budtmo/docker-android.git
synced 2026-07-29 09:26:30 +00:00
Updated unit test
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user