This repository has been archived on 2020-06-17. You can view files and clone it, but cannot push or open issues or pull requests.
autonomic/test/test_settings.py
Luke Murphy dcf23b8c35
Some checks reported errors
continuous-integration/drone/push Build was killed
Shore up test with a fixture for now
2020-04-11 23:59:47 +02:00

21 lines
370 B
Python

import pytest
from autonomic.settings import add, get, remove
@pytest.fixture
def config_yml():
from autonomic.command.init import create_configuration
create_configuration()
def test_add_get_remove(config_yml):
add({"foo": "bar"})
assert get("doesnt-exist") is None
assert get("foo") == "bar"
remove("foo")
assert get("foo") is None