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" 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 + """ )