Ejemplo n.º 1
0
 def test_clean_up_task(self, mock_shut_down_sandboxes, mock_terminate_appservers, mock_consul):
     """
     Test that `clean_up` task spawns `shut_down_obsolete_pr_sandboxes` and
     `terminate_obsolete_appservers_all_instances` tasks.
     """
     tasks.clean_up()
     mock_shut_down_sandboxes.assert_called_once_with()
     mock_terminate_appservers.assert_called_once_with()
Ejemplo n.º 2
0
 def test_clean_up_task(self, mock_shut_down_sandboxes, mock_terminate_appservers):  # pylint: disable=no-self-use
     """
     Test that `clean_up` task spawns `shut_down_obsolete_pr_sandboxes` and
     `terminate_obsolete_appservers_all_instances` tasks.
     """
     tasks.clean_up()
     mock_shut_down_sandboxes.assert_called_once_with()
     mock_terminate_appservers.assert_called_once_with()