mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 08:04:33 +00:00
fixed more tests
This commit is contained in:
parent
8ef8744ba1
commit
8fefc11380
3 changed files with 9 additions and 9 deletions
|
@ -96,8 +96,7 @@ class ARQDataTypeHandler:
|
||||||
return
|
return
|
||||||
|
|
||||||
def transmitted_raw(self, data):
|
def transmitted_raw(self, data):
|
||||||
decompressed_data = lzma.decompress(data)
|
return data
|
||||||
return decompressed_data
|
|
||||||
|
|
||||||
def prepare_raw_lzma(self, data):
|
def prepare_raw_lzma(self, data):
|
||||||
compressed_data = lzma.compress(data)
|
compressed_data = lzma.compress(data)
|
||||||
|
@ -130,7 +129,7 @@ class ARQDataTypeHandler:
|
||||||
return
|
return
|
||||||
|
|
||||||
def transmitted_raw_gzip(self, data):
|
def transmitted_raw_gzip(self, data):
|
||||||
decompressed_data = lzma.decompress(data)
|
decompressed_data = gzip.decompress(data)
|
||||||
return decompressed_data
|
return decompressed_data
|
||||||
|
|
||||||
def prepare_p2pmsg_lzma(self, data):
|
def prepare_p2pmsg_lzma(self, data):
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
[NETWORK]
|
[NETWORK]
|
||||||
modemport = 5000
|
modemport = 3050
|
||||||
|
|
||||||
[STATION]
|
[STATION]
|
||||||
mycall = XX1XXX
|
mycall = XX1XXX
|
||||||
mygrid = JN18cv
|
mygrid = JN18cv
|
||||||
myssid = 6
|
myssid = 6
|
||||||
ssid_list = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9 ]
|
ssid_list = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
|
||||||
enable_explorer = True
|
enable_explorer = True
|
||||||
enable_stats = True
|
enable_stats = True
|
||||||
|
|
||||||
|
|
|
@ -65,11 +65,12 @@ class TestDataFrameFactory(unittest.TestCase):
|
||||||
self.assertEqual(message.origin, received_message.origin)
|
self.assertEqual(message.origin, received_message.origin)
|
||||||
self.assertEqual(message.destination, received_message.destination)
|
self.assertEqual(message.destination, received_message.destination)
|
||||||
self.assertCountEqual(message.attachments, received_message.attachments)
|
self.assertCountEqual(message.attachments, received_message.attachments)
|
||||||
# FIXME...
|
result = self.database_manager.get_message_by_id(message.id)
|
||||||
#self.assertEqual(attachment['data'], received_message.attachments[0]['data'])
|
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__':
|
if __name__ == '__main__':
|
||||||
|
|
Loading…
Reference in a new issue