def test_get_helm_chart_exists(self, _0, _1, _2, _3, _4): cb = ChartBuilder({'name': 'foo', 'source': {}, 'dependencies': [ {'name': 'bar', 'source': {}} ]}) cb._helm_chart = '123' self.assertEqual(cb.get_helm_chart(), '123') cb._helm_chart = None cb.get_helm_chart() cb._logger.info.assert_called()
def test_get_helm_chart_exists(self, _0, _1, _2, _3, _4): cb = ChartBuilder({ "name": "foo", "source": {}, "dependencies": [{ "name": "bar", "source": {} }], }) cb._helm_chart = "123" self.assertEqual(cb.get_helm_chart(), "123") cb._helm_chart = None cb.get_helm_chart() cb._logger.info.assert_called()