test: move area_cli tests into cli directory (#3842)
* test: move area_cli tests into cli directory * test: include research CLI status in cli test move
This commit is contained in:
committed by
GitHub
parent
3e65326c3f
commit
a79c0bd369
14
tests/cli/test_preset_cli_store.py
Normal file
14
tests/cli/test_preset_cli_store.py
Normal file
@@ -0,0 +1,14 @@
|
||||
import pytest
|
||||
|
||||
from tests.helpers.cli_loader import load_script
|
||||
|
||||
|
||||
def test_load_rejects_non_object_preset_store(tmp_path, capsys):
|
||||
cli = load_script("odysseus-preset")
|
||||
cli._PATH = tmp_path / "presets.json"
|
||||
cli._PATH.write_text("[]")
|
||||
|
||||
with pytest.raises(SystemExit):
|
||||
cli._load()
|
||||
|
||||
assert "expected an object" in capsys.readouterr().err
|
||||
Reference in New Issue
Block a user