mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 08:04:33 +00:00
fixed database test
This commit is contained in:
parent
0a9ce0d202
commit
8ef8744ba1
1 changed files with 2 additions and 2 deletions
|
@ -38,9 +38,9 @@ class TestDataFrameFactory(unittest.TestCase):
|
|||
received_message = MessageP2P.from_payload(payload)
|
||||
received_message_dict = MessageP2P.to_dict(received_message)
|
||||
self.database_manager.add_message(received_message_dict)
|
||||
result = self.database_manager.get_message_by_id(message.id)
|
||||
|
||||
result = self.database_manager.get_all_messages()
|
||||
self.assertEqual(result[0]["destination"], message.destination)
|
||||
self.assertEqual(result["destination"], message.destination)
|
||||
|
||||
def testDeleteFromDatabase(self):
|
||||
attachment = {
|
||||
|
|
Loading…
Reference in a new issue