Skip to content

Commit f39e0a1

Browse files
authored
Merge pull request #1306 from Giskard-AI/GSK-1549
[GSK-1549] fixed bug related to test execution
2 parents 00f3c15 + b00caa8 commit f39e0a1

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

python-client/giskard/ml_worker/testing/registry/giskard_test.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,9 +130,8 @@ def execute(self) -> Result:
130130
analytics.track("test:execute", {"test_name": self.meta.full_name})
131131

132132
# if params contains debug then we check if test_fn has debug argument
133-
if "debug" in self.params:
134-
if "debug" not in list(inspect.signature(self.test_fn).parameters.keys()):
135-
raise ValueError("This test does not support debugging mode at the moment.")
133+
if "debug" in self.params and "debug" not in list(inspect.signature(self.test_fn).parameters.keys()):
134+
self.params.pop("debug")
136135

137136
return self.test_fn(**self.params)
138137

0 commit comments

Comments
 (0)