mirror of
https://github.com/Kozea/Radicale.git
synced 2025-09-12 20:30:57 +00:00
parent
2a29ad6a17
commit
a4150c633a
5 changed files with 28 additions and 5 deletions
8
radicale/tests/static/contact_photo_with_data_uri.vcf
Normal file
8
radicale/tests/static/contact_photo_with_data_uri.vcf
Normal file
|
@ -0,0 +1,8 @@
|
|||
BEGIN:VCARD
|
||||
VERSION:3.0
|
||||
UID:contact
|
||||
N:Contact;;;;
|
||||
FN:Contact
|
||||
NICKNAME:test
|
||||
PHOTO;ENCODING=b;TYPE=png:data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAIAAACQd1PeAAAAD0lEQVQIHQEEAPv/AP///wX+Av4DfRnGAAAAAElFTkSuQmCC
|
||||
END:VCARD
|
|
@ -139,6 +139,12 @@ permissions: RrWw""")
|
|||
_, answer = self.get(path)
|
||||
assert "UID:contact1" in answer
|
||||
|
||||
def test_add_contact_photo_with_data_uri(self) -> None:
|
||||
"""Test workaround for broken PHOTO data from InfCloud"""
|
||||
self.create_addressbook("/contacts.vcf/")
|
||||
contact = get_file_content("contact_photo_with_data_uri.vcf")
|
||||
self.put("/contacts.vcf/contact.vcf", contact)
|
||||
|
||||
def test_add_contact_without_uid(self) -> None:
|
||||
"""Add a contact without UID."""
|
||||
self.create_addressbook("/contacts.vcf/")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue