test: Return None for success in test_timezone_env() (#671)

- test_timezone_env() is producing the warning,
  "PytestReturnNotNoneWarning: Test functions should return None, but
  src/cmdeploy/tests/online/test_1_basic.py::test_timezone_env
  returned <class 'bool'>".
- Revised test_timezone_env() to return None for success instead of
  True.
This commit is contained in:
cliffmccarthy
2025-10-14 14:17:56 -05:00
committed by GitHub
parent 6f600fa329
commit 9787b63cbb

View File

@@ -69,7 +69,7 @@ def test_timezone_env(remote):
for line in remote.iter_output("env"): for line in remote.iter_output("env"):
print(line) print(line)
if line == "tz=:/etc/localtime": if line == "tz=:/etc/localtime":
return True return
pytest.fail("TZ is not set") pytest.fail("TZ is not set")