commit 39e55ba4681751a0f8936a79f2b6f5f497b4e248 parent 92d1489c5aaa3f58f99a8916b668ccea19e2be74 Author: Asher Morgan <asher@ashermorgan.net> Date: Fri, 18 Sep 2026 18:22:59 -0700 Fix unit test failures when .env file exists Diffstat:
| M | tests/unit/__init__.py | | | 4 | ++++ |
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/tests/unit/__init__.py b/tests/unit/__init__.py @@ -1,5 +1,9 @@ +import os import unittest +# Prevent env issues in TestPlaybookGetPlaybook.test_default_values() test +os.environ['AOH_PLAYBOOKS_FILE'] = 'playbooks.yml' + from .test_playbook import * from .test_security import *