1
0
Fork 0
mirror of https://github.com/deltachat/deltachat-core.git synced 2025-10-04 18:29:19 +02:00

add chat.delete(), chat.send_image, msg.filename, msg.filemime and msg.type.is_*

This commit is contained in:
holger krekel 2018-10-06 18:40:52 +02:00
parent 60240ce507
commit b6355176de
5 changed files with 181 additions and 3 deletions

View file

@ -1,4 +1,5 @@
from __future__ import print_function
import os
import pytest
from deltachat import Account
from deltachat.types import cached_property
@ -13,6 +14,19 @@ def pytest_addoption(parser):
)
@pytest.fixture(scope="session")
def data():
class Data:
def __init__(self):
self.path = os.path.join(os.path.dirname(__file__), "data")
def get_path(self, bn):
fn = os.path.join(self.path, bn)
assert os.path.exists(fn)
return fn
return Data()
@pytest.fixture
def acfactory(pytestconfig, tmpdir, request):
fn = pytestconfig.getoption("--liveconfig")