summaryrefslogtreecommitdiff
path: root/tests/utils.py
diff options
context:
space:
mode:
authorKaalleen <36401965+kaalleen@users.noreply.github.com>2025-02-03 22:37:36 +0100
committerGitHub <noreply@github.com>2025-02-03 22:37:36 +0100
commit497fbcfab5734aac889f15b72384a6a8631fffa4 (patch)
tree1f1a690a6108d7e4e0fac599d4e554edae9db6f9 /tests/utils.py
parente1c6d8c5956c7c3c5e158c1f7415edd5bc1a0cc1 (diff)
Add debug variable to enable sew stack elements (#3476)
Diffstat (limited to 'tests/utils.py')
-rw-r--r--tests/utils.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/utils.py b/tests/utils.py
new file mode 100644
index 00000000..3e771628
--- /dev/null
+++ b/tests/utils.py
@@ -0,0 +1,9 @@
+from lib.debug.utils import safe_get
+from lib.utils.paths import get_ini
+
+
+def element_count():
+ element_count = 1
+ if safe_get(get_ini(), "DEBUG", "sew_stack_enable", default=False):
+ element_count = 2
+ return element_count