From 3006bd45382b8086733fdc600fe677d51d61f321 Mon Sep 17 00:00:00 2001 From: Overlord360 <49475695+Overlord360@users.noreply.github.com> Date: Tue, 14 Jan 2025 11:41:04 +1100 Subject: [PATCH] Fix issue where a non-boolean variable passed into a testclass would skip the test. --- src/fixate/core/common.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/fixate/core/common.py b/src/fixate/core/common.py index 30055723..4f030b18 100644 --- a/src/fixate/core/common.py +++ b/src/fixate/core/common.py @@ -423,7 +423,12 @@ class TestClass: skip_on_fail = False def __init__(self, skip=False): - self.skip = skip + # Explicitly check if skip is True (and only true) to avoid the case where skip is set to a non-boolean value + if skip is True: + self.skip = True + else: + self.skip = False + if not self.test_desc: try: doc_string = [