Adds the transfer of sentiments into the sql db (#253)

Transfers the sentimenes from the mongodb int the sql db.
This commit is contained in:
2023-10-24 17:50:40 +02:00
committed by GitHub
parent b250b67343
commit 1eb972b7ff
10 changed files with 678 additions and 165 deletions

View File

@ -114,12 +114,10 @@ def test_transform_outgoing() -> None:
"source_url": "chat.openai.com",
}
expected_result = News(
**{
"id": "4711",
"title": "Hello",
"date": "Today",
"text": "World",
"source_url": "chat.openai.com",
}
id="4711",
title="Hello",
date="Today",
text="World",
source_url="chat.openai.com",
)
assert MongoEntryTransformer.transform_outgoing(data) == expected_result