Skip to content

Commit 2929a07

Browse files
committed
fixes for failing tests
1 parent 56441ef commit 2929a07

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

countess/core/cmd.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@ def configure_graphs(args: list[str]) -> Iterable[PipelineGraph]:
6767
try:
6868
graph = read_config([filename])
6969
except IOError as exc:
70-
logger.warning("Error reading %s: %s", filename, exc)
71-
continue
70+
logger.error("Error reading %s: %s", filename, exc)
71+
sys.exit(2)
7272

7373
for node_name, config_key, config_val in config:
7474
node = graph.find_node(node_name)

tests/test_config.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def test_read_config_dict_no_plugin():
2727

2828
def test_write_config():
2929
pn = PipelineNode("node", plugin=NothingPlugin("node"))
30-
pn.set_config("foo", "bar", "baz")
30+
pn.set_config("param", "107", "")
3131
pg = PipelineGraph([pn])
3232

3333
buf = io.StringIO()
@@ -37,7 +37,7 @@ def test_write_config():
3737

3838
s = buf.getvalue()
3939
assert s.startswith("[node]")
40-
assert "foo = 'bar'" in s
40+
assert "param = 107" in s
4141

4242

4343
def test_write_config_node_string():

0 commit comments

Comments
 (0)