From a13feba991eb63b7380472a8cde6a904283d393f Mon Sep 17 00:00:00 2001 From: starnakin Date: Mon, 6 Nov 2023 17:26:27 +0100 Subject: [PATCH] fix: create value var --- tests/utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/utils.py b/tests/utils.py index 11914b5..cf7d90f 100644 --- a/tests/utils.py +++ b/tests/utils.py @@ -1,6 +1,7 @@ def test(func: callable, params, expected_value, title: str, description = None): print(title, end=" ") - if (func(*params) == expected_value): + value = func(*params) + if (value == expected_value): print("[OK]") return print ("[ERROR]")