mirror of
https://github.com/deltachat/deltachat-core.git
synced 2025-10-04 02:09:17 +02:00
move all unref'in to a specific shadow class that takes care of unref'ing.
bump version
This commit is contained in:
parent
da2bcd0c5a
commit
8c1c65b631
6 changed files with 120 additions and 97 deletions
|
@ -1,5 +1,6 @@
|
|||
from __future__ import print_function
|
||||
from deltachat import capi
|
||||
import pytest
|
||||
from deltachat import capi, Account
|
||||
|
||||
|
||||
def test_empty_context():
|
||||
|
@ -7,6 +8,12 @@ def test_empty_context():
|
|||
capi.lib.dc_close(ctx)
|
||||
|
||||
|
||||
def test_wrong_db(tmpdir):
|
||||
tmpdir.join("hello.db").write("123")
|
||||
with pytest.raises(ValueError):
|
||||
Account(db_path=tmpdir.strpath)
|
||||
|
||||
|
||||
def test_event_defines():
|
||||
assert capi.lib.DC_EVENT_INFO == 100
|
||||
assert capi.lib.DC_CONTACT_ID_SELF
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue