From 798f5457a9bd0654de1ddbcbc95495af706302e3 Mon Sep 17 00:00:00 2001 From: Antony Nevis <44937660+anevis@users.noreply.github.com> Date: Sun, 7 Apr 2024 12:53:42 +1000 Subject: [PATCH 1/2] Create dependabot.yml --- .github/dependabot.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .github/dependabot.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..1988873 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,17 @@ +# To get started with Dependabot version updates, you'll need to specify which +# package ecosystems to update and where the package manifests are located. +# Please see the documentation for all configuration options: +# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file + +version: 2 +updates: + - package-ecosystem: pip + directory: "/" + schedule: + interval: "weekly" + commit-message: + prefix: "[dependabot] " + assignees: + - "anevis: + labels: + - "dependabot" From a0214d99af1e14f853103b773c8867912be0a124 Mon Sep 17 00:00:00 2001 From: Antony Nevis Date: Sun, 7 Apr 2024 13:32:38 +1000 Subject: [PATCH 2/2] Add test for List of lists --- src/yaml_to_markdown/md_converter_test.py | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/src/yaml_to_markdown/md_converter_test.py b/src/yaml_to_markdown/md_converter_test.py index 222189a..d16efc2 100644 --- a/src/yaml_to_markdown/md_converter_test.py +++ b/src/yaml_to_markdown/md_converter_test.py @@ -35,6 +35,25 @@ def test_process_list(self) -> None: | Section1 | | --- | | data1 | +""" + ) + + def test_process_list_of_list(self) -> None: + output_writer = StringIO() + md_converter = MDConverter() + data = [["list1 data1", "list1 data2"], ["list2 data1", "list2 data2"]] + + md_converter.convert(data, output_writer) + output = output_writer.getvalue() + + assert ( + output + == """## +* list1 data1 +* list1 data2 +* list2 data1 +* list2 data2 + """ )