e6c510fd3110d4c00004481d06e70e956d1415cf,tests/python/pants_test/pantsd/subsystem/test_pants_daemon_launcher.py,PantsDaemonLauncherTest,test_maybe_launch,#PantsDaemonLauncherTest#Any#,28
Before Change
def test_maybe_launch(self, mock_setup_services):
self.mock_pantsd.is_alive.return_value = False
self.launcher.maybe_launch()
self.assertGreater(mock_setup_services.call_count, 0)
self.assertGreater(self.mock_pantsd.is_alive.call_count, 0)
self.assertGreater(self.mock_pantsd.daemonize.call_count, 0)
After Change
self.mock_pantsd.is_alive.return_value = False
with self.pants_daemon_launcher() as pdl:
pdl.maybe_launch()
self.assertGreater(mock_setup_services.call_count, 0)
self.assertGreater(self.mock_pantsd.is_alive.call_count, 0)
self.assertGreater(self.mock_pantsd.daemonize.call_count, 0)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: pantsbuild/pants
Commit Name: e6c510fd3110d4c00004481d06e70e956d1415cf
Time: 2016-05-09
Author: kwilson@twopensource.com
File Name: tests/python/pants_test/pantsd/subsystem/test_pants_daemon_launcher.py
Class Name: PantsDaemonLauncherTest
Method Name: test_maybe_launch
Project Name: pantsbuild/pants
Commit Name: ea27e7c8c55d08fa9287e9b966e4a4474e55e1d8
Time: 2020-06-03
Author: stuhood@gmail.com
File Name: src/python/pants/bin/remote_pants_runner.py
Class Name: RemotePantsRunner
Method Name: run
Project Name: pantsbuild/pants
Commit Name: e6c510fd3110d4c00004481d06e70e956d1415cf
Time: 2016-05-09
Author: kwilson@twopensource.com
File Name: tests/python/pants_test/pantsd/subsystem/test_pants_daemon_launcher.py
Class Name: PantsDaemonLauncherTest
Method Name: test_maybe_launch_already_alive