mirror of
https://github.com/KnugiHK/WhatsApp-Chat-Exporter.git
synced 2026-04-26 07:51:31 +00:00
Update test_incremental_merge.py
This commit is contained in:
@@ -9,6 +9,7 @@ from Whatsapp_Chat_Exporter.data_model import ChatStore
|
|||||||
BASE_PATH = "AppDomainGroup-group.net.whatsapp.WhatsApp.shared"
|
BASE_PATH = "AppDomainGroup-group.net.whatsapp.WhatsApp.shared"
|
||||||
chat_data_1 = {
|
chat_data_1 = {
|
||||||
"12345678@s.whatsapp.net": {
|
"12345678@s.whatsapp.net": {
|
||||||
|
'aliases': [],
|
||||||
"name": "Friend",
|
"name": "Friend",
|
||||||
"type": "ios",
|
"type": "ios",
|
||||||
"my_avatar": os.path.join(BASE_PATH, "Media", "Profile", "Photo.jpg"),
|
"my_avatar": os.path.join(BASE_PATH, "Media", "Profile", "Photo.jpg"),
|
||||||
@@ -44,6 +45,7 @@ chat_data_1 = {
|
|||||||
|
|
||||||
chat_data_2 = {
|
chat_data_2 = {
|
||||||
"12345678@s.whatsapp.net": {
|
"12345678@s.whatsapp.net": {
|
||||||
|
'aliases': [],
|
||||||
"name": "Friend",
|
"name": "Friend",
|
||||||
"type": "ios",
|
"type": "ios",
|
||||||
"my_avatar": os.path.join(BASE_PATH, "Media", "Profile", "Photo.jpg"),
|
"my_avatar": os.path.join(BASE_PATH, "Media", "Profile", "Photo.jpg"),
|
||||||
@@ -80,6 +82,7 @@ chat_data_2 = {
|
|||||||
# Expected merged data - should contain all messages with all fields initialized as they would be by Message class
|
# Expected merged data - should contain all messages with all fields initialized as they would be by Message class
|
||||||
chat_data_merged = {
|
chat_data_merged = {
|
||||||
"12345678@s.whatsapp.net": {
|
"12345678@s.whatsapp.net": {
|
||||||
|
'aliases': [],
|
||||||
"name": "Friend",
|
"name": "Friend",
|
||||||
"type": "ios",
|
"type": "ios",
|
||||||
"my_avatar": os.path.join(BASE_PATH, "Media", "Profile", "Photo.jpg"),
|
"my_avatar": os.path.join(BASE_PATH, "Media", "Profile", "Photo.jpg"),
|
||||||
|
|||||||
Reference in New Issue
Block a user