add tests
This commit is contained in:
parent
f776f8a9be
commit
db79c0ae29
|
@ -0,0 +1,9 @@
|
|||
import pytest
|
||||
from todoist_interface import settings
|
||||
|
||||
|
||||
def test_settings():
|
||||
config = settings.read_config("todoist_interface.yml.example")
|
||||
assert (config["gitlab"]["token"] == "gitlabtoken"
|
||||
and config["gitlab"]["url"] == "https://gitlab.example.com/api/v4/"
|
||||
and config["todoist"]["token"] == "todoisttoken")
|
|
@ -0,0 +1,7 @@
|
|||
import pytest
|
||||
from todoist_interface.todoist import TodoistAPI
|
||||
|
||||
|
||||
def test_todoist_init():
|
||||
todoist = TodoistAPI("1234")
|
||||
assert todoist.token == "1234"
|
Loading…
Reference in New Issue