def test_definition_get_all(mock_send_message_json): mock_send_message_json.return_value = [] assert len(list(Definition.get_all())) == 0 mock_send_message_json.return_value = DEFINITIONS definitions = list(Definition.get_all()) assert len(definitions) == 2 def_0, def_1 = definitions assert def_0.rb_name == "test_rb_name_0" assert def_0.rb_version == "test_rb_version_0" assert def_0.chart_name is None assert def_0.description is None assert def_0.labels is None assert def_1.rb_name == "test_rb_name_1" assert def_1.rb_version == "test_rb_version_1" assert def_1.chart_name == "test_chart_name_1" assert def_1.description == "test_description_1" assert def_1.labels == {}
def test_definition_get_all(): definitions = list(Definition.get_all())