Shore up test with a fixture for now
Some checks reported errors
continuous-integration/drone/push Build was killed
Some checks reported errors
continuous-integration/drone/push Build was killed
This commit is contained in:
parent
3ff41797c2
commit
dcf23b8c35
@ -1,7 +1,16 @@
|
|||||||
|
import pytest
|
||||||
|
|
||||||
from autonomic.settings import add, get, remove
|
from autonomic.settings import add, get, remove
|
||||||
|
|
||||||
|
|
||||||
def test_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"})
|
add({"foo": "bar"})
|
||||||
|
|
||||||
assert get("doesnt-exist") is None
|
assert get("doesnt-exist") is None
|
||||||
|
Reference in New Issue
Block a user