mirror of
https://github.com/fhswf/aki_prj23_transparenzregister.git
synced 2025-06-22 22:53:56 +02:00
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:
@ -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
|
||||
|
Reference in New Issue
Block a user