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:
Philipp authored and GitHub committed 2023-10-24 17:50:40 +02:00
1 parent b250b67343
commit 1eb972b7ff
10 files changed
+678 -165

No files matched your search

+5 -7
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