mirror of
https://github.com/KnugiHK/WhatsApp-Chat-Exporter.git
synced 2026-03-17 19:42:37 +00:00
21 lines
681 B
Python
21 lines
681 B
Python
# from contacts_names_from_vcards import readVCardsFile
|
|
|
|
from Whatsapp_Chat_Exporter.vcards_contacts import normalize_number, read_vcards_file
|
|
|
|
|
|
def test_readVCardsFile():
|
|
assert len(read_vcards_file("contacts.vcf", "973")) > 0
|
|
|
|
def test_create_number_to_name_dicts():
|
|
pass
|
|
|
|
def test_fuzzy_match_numbers():
|
|
pass
|
|
|
|
def test_normalize_number():
|
|
assert normalize_number('0531234567', '1') == '1531234567'
|
|
assert normalize_number('001531234567', '2') == '1531234567'
|
|
assert normalize_number('+1531234567', '34') == '1531234567'
|
|
assert normalize_number('053(123)4567', '34') == '34531234567'
|
|
assert normalize_number('0531-234-567', '58') == '58531234567'
|