summaryrefslogtreecommitdiffstats
path: root/test/units/utils/conftest.py
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--test/units/utils/conftest.py18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/units/utils/conftest.py b/test/units/utils/conftest.py
new file mode 100644
index 0000000000..2528ae3442
--- /dev/null
+++ b/test/units/utils/conftest.py
@@ -0,0 +1,18 @@
+# Copyright: Contributors to the Ansible project
+# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
+
+from __future__ import annotations
+
+import pytest
+
+from ansible.utils.display import Display
+
+
+@pytest.fixture()
+def display_resource(request):
+ Display._Singleton__instance = None
+
+ def teardown():
+ Display._Singleton__instance = None
+
+ request.addfinalizer(teardown)