def test_run_one_suite_suite_not_found( self, fake_lib_get_volumes, fake_app_get_volumes, fake_update_nfs, fake_ensure_current_image, fake_expanded_libs, fake_get_docker_client, fake_initialize_vm): fake_expanded_libs.return_value = self.specs with self.assertRaises(RuntimeError): test.run_one_suite('app-a', 'nosetests', [])
def test_run_one_suite_app_found(self, fake_exit, fake_write_commands, fake_run_tests, fake_lib_get_volumes, fake_app_get_volumes, fake_update_nfs, fake_ensure_current_image, fake_expanded_libs, fake_get_docker_client, fake_initialize_vm): fake_expanded_libs.return_value = self.specs fake_lib_get_volumes.return_value = ['/host/route:/container/route'] fake_app_get_volumes.return_value = [] fake_get_docker_client.return_value = 'docker-client' fake_run_tests.return_value = 1 test.run_one_suite('app-a','nose', []) fake_exit.assert_has_calls([call(1)])
def test_run_one_suite_app_found( self, fake_exit, fake_write_commands, fake_run_tests, fake_lib_get_volumes, fake_app_get_volumes, fake_update_nfs, fake_ensure_current_image, fake_expanded_libs, fake_get_docker_client, fake_initialize_vm): fake_expanded_libs.return_value = self.specs fake_lib_get_volumes.return_value = ['/host/route:/container/route'] fake_app_get_volumes.return_value = [] fake_get_docker_client.return_value = 'docker-client' fake_run_tests.return_value = 1 test.run_one_suite('app-a', 'nose', []) fake_exit.assert_has_calls([call(1)])
def test_run_one_suite_suite_not_found(self, fake_lib_get_volumes, fake_app_get_volumes, fake_update_nfs, fake_ensure_current_image, fake_expanded_libs, fake_get_docker_client, fake_initialize_vm): fake_expanded_libs.return_value = self.specs with self.assertRaises(RuntimeError): test.run_one_suite('app-a', 'nosetests', [])