From 29c57ae066fefe10b0a914cbc9eaec56ce886acc Mon Sep 17 00:00:00 2001 From: David Perl Date: Thu, 11 Dec 2025 10:05:30 +0100 Subject: [PATCH] feat: add a macro function for testing --- bec_testing_plugin/macros/macro_test.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/bec_testing_plugin/macros/macro_test.py b/bec_testing_plugin/macros/macro_test.py index 6c9018a..dcf3502 100644 --- a/bec_testing_plugin/macros/macro_test.py +++ b/bec_testing_plugin/macros/macro_test.py @@ -1,4 +1,16 @@ +from time import sleep + + def macro_test(a: int, b: int): print(f"Calculating {a}+{b}...") print(f"{a+b}") return a + b + + +def macro_test_takes_time(a: int, b: int): + print(f"Calculating {a}+{b}...") + sleep(3) + print("thinking...") + sleep(3) + print(f"{a+b}") + return a + b