Skip to content

Commit c5f3540

Browse files
committed
Fix tests
1 parent 545fbcc commit c5f3540

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

samples-v2/blueprint/tests/test_start_orchestrator.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,14 @@ def test_HttpStart(self, client):
1313

1414
req = func.HttpRequest(method='GET',
1515
body=b'{}',
16-
url='/api/my_second_function',
17-
route_params={"functionName": "E2_BackupSiteContent"})
16+
url='/api/my_second_function')
1817

1918
client.start_new = AsyncMock(return_value="instance_id")
2019
client.create_check_status_response = Mock(return_value="check_status_response")
2120

2221
# Create a generator using the method and mocked context
2322
result = asyncio.run(func_call(req, client))
2423

25-
client.start_new.assert_called_once_with("E2_BackupSiteContent", client_input={})
24+
client.start_new.assert_called_once_with("my_orchestrator", client_input={})
2625
client.create_check_status_response.assert_called_once_with(req, "instance_id")
2726
self.assertEqual(result, "check_status_response")

samples-v2/function_chaining/tests/test_http_start.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ def test_HttpStart(self, client):
1414
req = func.HttpRequest(method='GET',
1515
body=b'{}',
1616
url='/api/my_second_function',
17-
route_params={"functionName": "E2_BackupSiteContent"})
17+
route_params={"functionName": "my_orchestrator"})
1818

1919
client.start_new = AsyncMock(return_value="instance_id")
2020
client.create_check_status_response = Mock(return_value="check_status_response")
2121

2222
# Create a generator using the method and mocked context
2323
result = asyncio.run(func_call(req, client))
2424

25-
client.start_new.assert_called_once_with("E2_BackupSiteContent", client_input={})
25+
client.start_new.assert_called_once_with("my_orchestrator", client_input={})
2626
client.create_check_status_response.assert_called_once_with(req, "instance_id")
2727
self.assertEqual(result, "check_status_response")

0 commit comments

Comments
 (0)