diff --git a/tests/test_settings.py b/tests/test_settings.py new file mode 100644 index 0000000..f27819d --- /dev/null +++ b/tests/test_settings.py @@ -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") diff --git a/tests/test_todoist.py b/tests/test_todoist.py new file mode 100644 index 0000000..a34eddf --- /dev/null +++ b/tests/test_todoist.py @@ -0,0 +1,7 @@ +import pytest +from todoist_interface.todoist import TodoistAPI + + +def test_todoist_init(): + todoist = TodoistAPI("1234") + assert todoist.token == "1234"