Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: support single metadata dictionary in MarkdownToDocument #6629

Merged
merged 9 commits into from
Jan 9, 2024
Prev Previous commit
Next Next commit
direct key access
  • Loading branch information
ZanSara committed Dec 22, 2023
commit 69dd41e323d6e5b8e588d0dfe979e426f4b5760d
5 changes: 3 additions & 2 deletions test/components/converters/test_markdown_to_document.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,9 @@ def test_run_with_meta(self, test_files_path):
)

# check that the metadata from the bytestream is merged with that from the meta parameter
assert output["documents"][0].meta == {"author": "test_author", "language": "it"}
assert output["documents"][1].meta == {"language": "it"}
assert output["documents"][0].meta["author"] == "test_author"
assert output["documents"][0].meta["language"] == "it"
assert output["documents"][1].meta["language"] == "it"

@pytest.mark.integration
def test_run_wrong_file_type(self, test_files_path, caplog):
Expand Down
Loading