fixed more tests

This commit is contained in:
DJ2LS 2024-02-07 19:54:54 +01:00
parent 8ef8744ba1
commit 8fefc11380
3 changed files with 9 additions and 9 deletions

View file

@ -96,8 +96,7 @@ class ARQDataTypeHandler:
return
def transmitted_raw(self, data):
decompressed_data = lzma.decompress(data)
return decompressed_data
return data
def prepare_raw_lzma(self, data):
compressed_data = lzma.compress(data)
@ -130,7 +129,7 @@ class ARQDataTypeHandler:
return
def transmitted_raw_gzip(self, data):
decompressed_data = lzma.decompress(data)
decompressed_data = gzip.decompress(data)
return decompressed_data
def prepare_p2pmsg_lzma(self, data):

View file

@ -1,5 +1,5 @@
[NETWORK]
modemport = 5000
modemport = 3050
[STATION]
mycall = XX1XXX

View file

@ -65,11 +65,12 @@ class TestDataFrameFactory(unittest.TestCase):
self.assertEqual(message.origin, received_message.origin)
self.assertEqual(message.destination, received_message.destination)
self.assertCountEqual(message.attachments, received_message.attachments)
# FIXME...
#self.assertEqual(attachment['data'], received_message.attachments[0]['data'])
result = self.database_manager.get_message_by_id(message.id)
self.assertEqual(result["is_read"], True)
self.assertEqual(result["destination"], message.destination)
result = self.database_manager.get_all_messages()
self.assertEqual(result[0]["destination"], message.destination)
if __name__ == '__main__':