From 386cae4676769accb7092a2115bdda4e9f7dc23c Mon Sep 17 00:00:00 2001 From: yaythomas Date: Fri, 26 Sep 2025 10:21:52 -0700 Subject: [PATCH] fix: example test Example test was failing because return type now deserialized. --- examples/test/test_hello_world.py | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/examples/test/test_hello_world.py b/examples/test/test_hello_world.py index bbc869e..09d4bf6 100644 --- a/examples/test/test_hello_world.py +++ b/examples/test/test_hello_world.py @@ -9,13 +9,10 @@ from src import hello_world -class TestExamples: - """Integration tests for examples.""" +def test_hello_world(): + """Test hello world example.""" + with DurableFunctionTestRunner(handler=hello_world.handler) as runner: + result: DurableFunctionTestResult = runner.run(input="test", timeout=10) - def test_hello_world(self): - """Test hello world example.""" - with DurableFunctionTestRunner(handler=hello_world.handler) as runner: - result: DurableFunctionTestResult = runner.run(input="test", timeout=10) - - assert result.status is InvocationStatus.SUCCEEDED # noqa: S101 - assert result.result == '"Hello World!"' # noqa: S101 + assert result.status is InvocationStatus.SUCCEEDED # noqa: S101 + assert result.result == "Hello World!" # noqa: S101