Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
Signed-off-by: Partho Sarthi <[email protected]>
  • Loading branch information
parthosa committed Nov 1, 2023
1 parent 1dadc41 commit 05178df
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion user_tools/src/spark_rapids_tools/utils/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def dump_tool_usage(tool_name: Optional[str], raise_sys_exit: Optional[bool] = T
imported_module = __import__('spark_rapids_tools.cmdli', globals(), locals(), ['ToolsCLI'])
wrapper_clzz = getattr(imported_module, 'ToolsCLI')
help_name = 'ascli'
usage_cmd = f'{tool_name} --help'
usage_cmd = f'{tool_name} -- --help'
try:
fire.Fire(wrapper_clzz(), name=help_name, command=usage_cmd)
except fire.core.FireExit:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,8 @@ def test_cluster_props_no_eventlogs_on_prem(self, capsys, tool_name):
platform='onprem')
assert pytest_wrapped_e.type == SystemExit
captured = capsys.readouterr()
# Verify there is no URL in error message
assert 'https://' not in captured.err
# Verify there is no URL in error message except for the one from the documentation
assert 'https://' not in captured.err or 'nvidia.github.io' in captured.err

@pytest.mark.skip(reason='Unit tests are not completed yet')
def test_arg_cases_coverage(self):
Expand Down

0 comments on commit 05178df

Please sign in to comment.