From c5936f92ae441bc1cc5acfd81125f5b9c30063b9 Mon Sep 17 00:00:00 2001 From: Joseph Hall Date: Thu, 14 Sep 2023 08:55:52 -0600 Subject: [PATCH] Assert against True, not unspecified --- tests/pytests/functional/formulas/test_nginx.py | 2 +- tests/pytests/functional/formulas/test_users.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/pytests/functional/formulas/test_nginx.py b/tests/pytests/functional/formulas/test_nginx.py index 89873838a14..ea6381f7e3b 100644 --- a/tests/pytests/functional/formulas/test_nginx.py +++ b/tests/pytests/functional/formulas/test_nginx.py @@ -25,4 +25,4 @@ def test_formula(modules): assert not ret.errors assert not ret.failed for staterun in ret: - assert staterun.result + assert staterun.result is True diff --git a/tests/pytests/functional/formulas/test_users.py b/tests/pytests/functional/formulas/test_users.py index 8e74c9d017b..e30e34b95ee 100644 --- a/tests/pytests/functional/formulas/test_users.py +++ b/tests/pytests/functional/formulas/test_users.py @@ -27,7 +27,7 @@ def test_users_formula(modules): assert not ret.errors assert not ret.failed for staterun in ret: - assert staterun.result + assert staterun.result is True # bashrc ret = modules.state.sls("users.bashrc") @@ -36,4 +36,4 @@ def test_users_formula(modules): assert not ret.errors assert not ret.failed for staterun in ret: - assert staterun.result + assert staterun.result is True