Skip to content

Commit

Permalink
Test that values are truthy, not None is insufficient
Browse files Browse the repository at this point in the history
  • Loading branch information
asmacdo committed Aug 21, 2024
1 parent 7d32b23 commit e298bc4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/test_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,10 +150,10 @@ def test_system_info_sanity(mock_log_paths: mock.MagicMock) -> None:
report = Report("_cmd", [], mock_log_paths, EXECUTION_SUMMARY_FORMAT, clobber=False)
report.get_system_info()
assert report.system_info is not None
assert report.system_info.hostname is not None
assert report.system_info.cpu_total is not None
assert report.system_info.hostname
assert report.system_info.cpu_total
assert report.system_info.memory_total > 10
assert report.system_info.uid is not None
assert report.system_info.uid


@mock.patch("con_duct.__main__.LogPaths")
Expand Down

0 comments on commit e298bc4

Please sign in to comment.