mirror of
https://github.com/chatmail/core.git
synced 2026-04-06 15:42:10 +03:00
adapt python tests
This commit is contained in:
@@ -14,9 +14,9 @@ class Provider(object):
|
||||
:param domain: The email to get the provider info for.
|
||||
"""
|
||||
|
||||
def __init__(self, addr):
|
||||
def __init__(self, account, addr):
|
||||
provider = ffi.gc(
|
||||
lib.dc_provider_new_from_email(as_dc_charpointer(addr)),
|
||||
lib.dc_provider_new_from_email(account._dc_context, as_dc_charpointer(addr)),
|
||||
lib.dc_provider_unref,
|
||||
)
|
||||
if provider == ffi.NULL:
|
||||
|
||||
Reference in New Issue
Block a user