Loading tools/edit_monitor/daemon_manager.py +1 −1 Original line number Diff line number Diff line Loading @@ -83,7 +83,7 @@ class DaemonManager: if not utils.is_feature_enabled( "edit_monitor", self.user_name, "ENABLE_EDIT_MONITOR", "ENABLE_ANDROID_EDIT_MONITOR", 10, ): logging.warning("Edit monitor is disabled, exiting...") Loading tools/edit_monitor/daemon_manager_test.py +3 −2 Original line number Diff line number Diff line Loading @@ -81,7 +81,8 @@ class DaemonManagerTest(unittest.TestCase): # Sets the tempdir under the working dir so any temp files created during # tests will be cleaned. tempfile.tempdir = self.working_dir.name self.patch = mock.patch.dict(os.environ, {'ENABLE_EDIT_MONITOR': 'true'}) self.patch = mock.patch.dict( os.environ, {'ENABLE_ANDROID_EDIT_MONITOR': 'true'}) self.patch.start() def tearDown(self): Loading Loading @@ -136,7 +137,7 @@ class DaemonManagerTest(unittest.TestCase): # Verify no daemon process is started. self.assertIsNone(dm.daemon_process) @mock.patch.dict(os.environ, {'ENABLE_EDIT_MONITOR': 'false'}, clear=True) @mock.patch.dict(os.environ, {'ENABLE_ANDROID_EDIT_MONITOR': 'false'}, clear=True) def test_start_return_directly_if_disabled(self): dm = daemon_manager.DaemonManager(TEST_BINARY_FILE) dm.start() Loading tools/edit_monitor/edit_monitor_integration_test.py +2 −1 Original line number Diff line number Diff line Loading @@ -48,7 +48,8 @@ class EditMonitorIntegrationTest(unittest.TestCase): ) self.root_monitoring_path.mkdir() self.edit_monitor_binary_path = self._import_executable("edit_monitor") self.patch = mock.patch.dict(os.environ, {'ENABLE_EDIT_MONITOR': 'true'}) self.patch = mock.patch.dict( os.environ, {'ENABLE_ANDROID_EDIT_MONITOR': 'true'}) self.patch.start() def tearDown(self): Loading Loading
tools/edit_monitor/daemon_manager.py +1 −1 Original line number Diff line number Diff line Loading @@ -83,7 +83,7 @@ class DaemonManager: if not utils.is_feature_enabled( "edit_monitor", self.user_name, "ENABLE_EDIT_MONITOR", "ENABLE_ANDROID_EDIT_MONITOR", 10, ): logging.warning("Edit monitor is disabled, exiting...") Loading
tools/edit_monitor/daemon_manager_test.py +3 −2 Original line number Diff line number Diff line Loading @@ -81,7 +81,8 @@ class DaemonManagerTest(unittest.TestCase): # Sets the tempdir under the working dir so any temp files created during # tests will be cleaned. tempfile.tempdir = self.working_dir.name self.patch = mock.patch.dict(os.environ, {'ENABLE_EDIT_MONITOR': 'true'}) self.patch = mock.patch.dict( os.environ, {'ENABLE_ANDROID_EDIT_MONITOR': 'true'}) self.patch.start() def tearDown(self): Loading Loading @@ -136,7 +137,7 @@ class DaemonManagerTest(unittest.TestCase): # Verify no daemon process is started. self.assertIsNone(dm.daemon_process) @mock.patch.dict(os.environ, {'ENABLE_EDIT_MONITOR': 'false'}, clear=True) @mock.patch.dict(os.environ, {'ENABLE_ANDROID_EDIT_MONITOR': 'false'}, clear=True) def test_start_return_directly_if_disabled(self): dm = daemon_manager.DaemonManager(TEST_BINARY_FILE) dm.start() Loading
tools/edit_monitor/edit_monitor_integration_test.py +2 −1 Original line number Diff line number Diff line Loading @@ -48,7 +48,8 @@ class EditMonitorIntegrationTest(unittest.TestCase): ) self.root_monitoring_path.mkdir() self.edit_monitor_binary_path = self._import_executable("edit_monitor") self.patch = mock.patch.dict(os.environ, {'ENABLE_EDIT_MONITOR': 'true'}) self.patch = mock.patch.dict( os.environ, {'ENABLE_ANDROID_EDIT_MONITOR': 'true'}) self.patch.start() def tearDown(self): Loading