def test_must_raise_for_unsupported_runtimes(self): runtime = "foobar" with self.assertRaises(UnsupportedRuntimeException) as ctx: _get_workflow_config(runtime) self.assertEquals(str(ctx.exception), "'foobar' runtime is not supported")
def test_must_work_for_nodejs(self, runtime): result = _get_workflow_config(runtime) self.assertEquals(result.language, "nodejs") self.assertEquals(result.dependency_manager, "npm") self.assertEquals(result.application_framework, None) self.assertEquals(result.manifest_name, "package.json")
def test_must_work_for_python(self, runtime): result = _get_workflow_config(runtime) self.assertEquals(result.language, "python") self.assertEquals(result.dependency_manager, "pip") self.assertEquals(result.application_framework, None) self.assertEquals(result.manifest_name, "requirements.txt")