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

21 lines
370 B
Python
Raw Permalink Normal View History

2020-04-11 21:59:47 +00:00
import pytest
2020-04-11 20:47:16 +00:00
from autonomic.settings import add, get, remove
2020-04-11 21:59:47 +00:00
@pytest.fixture
def config_yml():
from autonomic.command.init import create_configuration
create_configuration()
def test_add_get_remove(config_yml):
2020-04-11 20:47:16 +00:00
add({"foo": "bar"})
assert get("doesnt-exist") is None
assert get("foo") == "bar"
remove("foo")
assert get("foo") is None