2021-11-06 19:35:06 +01:00
|
|
|
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/"
|
2021-11-06 20:04:11 +01:00
|
|
|
and config["todoist"]["token"] == "todoisttoken"
|
2021-11-06 21:27:27 +01:00
|
|
|
and config["gitlab"]["assignee"] == "muster"
|
|
|
|
and config["mantishub"]["token"] == "mantistoken")
|