Skip to content

Commit fb32dbc

Browse files
committed
fix tests
1 parent b08de5f commit fb32dbc

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/nxscli/phandler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ def channels_configure(
349349
"""
350350
assert self._nxs
351351

352-
logger.info("configure channels = %s divider = %d", str(channels), div)
352+
logger.info("configure channels = %s divider = %s", str(channels), str(div))
353353

354354
self._chanlist = self._chanlist_gen(channels)
355355
if not self._chanlist:

tests/cli/test_main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ def runner(mocker):
1313

1414
def test_main(runner):
1515
result = runner.invoke(main)
16-
assert result.exit_code == 0
16+
assert result.exit_code == 2
1717

1818

1919
def test_main_dummy(runner):
2020
result = runner.invoke(main, ["dummy"])
21-
assert result.exit_code == 0
21+
assert result.exit_code == 2
2222

2323

2424
def test_main_pdevinfo(runner):

0 commit comments

Comments
 (0)