mirror of
https://github.com/deltachat/deltachat-core.git
synced 2025-10-04 10:19:16 +02:00
Add proof-of-concept unittest
Doesn't do anything useful yet.
This commit is contained in:
parent
c5b8113032
commit
880071b161
2 changed files with 20 additions and 0 deletions
4
.gitignore
vendored
4
.gitignore
vendored
|
@ -5,6 +5,10 @@
|
||||||
*.o
|
*.o
|
||||||
.deps
|
.deps
|
||||||
.dirstamp
|
.dirstamp
|
||||||
|
.eggs
|
||||||
|
__pycache__
|
||||||
|
.pytest_cache
|
||||||
|
*.egg-info
|
||||||
|
|
||||||
# ignore Codeblocks temporary files and build directories.
|
# ignore Codeblocks temporary files and build directories.
|
||||||
# Codeblocks project file (*.cbp) is added although it may contain some user preferences (eg. program's arguments), it may be useful for some people
|
# Codeblocks project file (*.cbp) is added although it may contain some user preferences (eg. program's arguments), it may be useful for some people
|
||||||
|
|
16
python/tests/test_mrmailbox.py
Normal file
16
python/tests/test_mrmailbox.py
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
import pathlib
|
||||||
|
|
||||||
|
import pytest
|
||||||
|
|
||||||
|
from deltachat import capi
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.fixture
|
||||||
|
def tmppath(tmpdir):
|
||||||
|
return pathlib.Path(tmpdir.strpath)
|
||||||
|
|
||||||
|
|
||||||
|
def test_new():
|
||||||
|
mbox = capi.lib.mrmailbox_new(capi.ffi.NULL, capi.ffi.NULL, capi.ffi.NULL)
|
||||||
|
capi.lib.mrmailbox_close(mbox)
|
||||||
|
assert 0
|
Loading…
Add table
Add a link
Reference in a new issue