Skip to content

Commit

Permalink
Fix tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
tsalo committed Nov 19, 2024
1 parent 1e53cea commit 253ca7e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions xcp_d/tests/test_cli_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,7 @@ def test_build_parser_01(tmp_path_factory):
opts = parser_obj.parse_args(args=test_args, namespace=None)
assert opts.fmri_dir == data_path
assert opts.output_dir == out_path
assert opts.correlation_lengths == ['all', '300', '480']
assert opts.correlation_lengths == ['all', '300.0', '480.0']


def test_build_parser_02(tmp_path_factory):
Expand Down Expand Up @@ -496,7 +496,7 @@ def test_build_parser_02(tmp_path_factory):
opts = parser_obj.parse_args(args=test_args, namespace=None)
assert opts.fmri_dir == data_path
assert opts.output_dir == out_path
assert opts.correlation_lengths == ['all', '300', '480']
assert opts.correlation_lengths == ['all', '300.0', '480.0']


@pytest.mark.parametrize(
Expand Down
4 changes: 2 additions & 2 deletions xcp_d/tests/test_cli_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,10 @@ def test_float_or_auto_or_none():
assert out == 'none'

out = parser_utils._float_or_auto_or_none('3')
assert out == 3.0
assert out == '3.0'

out = parser_utils._float_or_auto_or_none(3)
assert out == 3.0
assert out == '3.0'


def test_is_file(tmp_path_factory):
Expand Down

0 comments on commit 253ca7e

Please sign in to comment.