Skip to content

Commit d736426

Browse files
committed
Remove extra comments, tests
1 parent 70cb81d commit d736426

File tree

6 files changed

+17
-502
lines changed

6 files changed

+17
-502
lines changed

tests/durabletask-azuremanaged/entities/test_dts_function_based_entities_e2e.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -386,3 +386,12 @@ def empty_orchestrator(ctx: task.OrchestrationContext, _):
386386
# c.wait_for_orchestration_completion(id, timeout=30)
387387

388388
# assert invoke_count == 6
389+
390+
391+
def test_get_entity_not_found():
392+
"""Test that get_entity returns None for a non-existent entity."""
393+
c = DurableTaskSchedulerClient(host_address=endpoint, secure_channel=True,
394+
taskhub=taskhub_name, token_credential=None)
395+
entity_id = entities.EntityInstanceId("counter", "nonexistent")
396+
metadata = c.get_entity(entity_id, include_state=True)
397+
assert metadata is None

tests/durabletask/entities/test_class_based_entities_e2e.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33

44
"""
55
E2E tests for class-based durable entities using the in-memory backend.
6-
7-
These tests mirror the cases in tests/durabletask-azuremanaged/entities/test_dts_class_based_entities_e2e.py
8-
but use the InMemoryOrchestrationBackend instead of the Azure Durable Task Scheduler.
96
"""
107

118
import time

tests/durabletask/entities/test_entity_failure_handling.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33

44
"""
55
E2E tests for entity failure handling using the in-memory backend.
6-
7-
These tests mirror the cases in tests/durabletask-azuremanaged/entities/test_dts_entity_failure_handling.py
8-
but use the InMemoryOrchestrationBackend instead of the Azure Durable Task Scheduler.
96
"""
107

118
import json

tests/durabletask/entities/test_function_based_entities_e2e.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33

44
"""
55
E2E tests for function-based durable entities using the in-memory backend.
6-
7-
These tests mirror the cases in tests/durabletask-azuremanaged/entities/test_dts_function_based_entities_e2e.py
8-
but use the InMemoryOrchestrationBackend instead of the Azure Durable Task Scheduler.
96
"""
107

118
import time
@@ -350,3 +347,11 @@ def empty_orchestrator(ctx: task.OrchestrationContext, _):
350347
c.wait_for_orchestration_completion(id, timeout=30)
351348

352349
assert invoke_count == 2
350+
351+
352+
def test_get_entity_not_found():
353+
"""Test that get_entity returns None for a non-existent entity."""
354+
c = client.TaskHubGrpcClient(host_address=HOST)
355+
entity_id = entities.EntityInstanceId("counter", "nonexistent")
356+
metadata = c.get_entity(entity_id, include_state=True)
357+
assert metadata is None

tests/durabletask/test_in_memory_backend.py

Lines changed: 0 additions & 258 deletions
This file was deleted.

0 commit comments

Comments
 (0)