Skip to content

Commit 5144d59

Browse files
committed
Fix tests
1 parent 043ce0c commit 5144d59

1 file changed

Lines changed: 1 addition & 9 deletions

File tree

tests/models/test_DurableOrchestrationContext.py

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -101,18 +101,10 @@ def test_get_input_json_str():
101101

102102
assert 'Seattle' == result['city']
103103

104-
def test_version_equals_version_from_first_execution_started_event():
104+
def test_version_equals_version_from_execution_started_event():
105105
builder = ContextBuilder('test_function_context')
106106
builder.history_events = []
107107
builder.add_orchestrator_started_event()
108108
builder.add_execution_started_event(name="TestOrchestrator", version="1.0")
109-
builder.add_execution_started_event(name="TestOrchestrator", version="2.0")
110109
context = DurableOrchestrationContext.from_json(builder.to_json_string())
111110
assert context.version == "1.0"
112-
113-
def test_version_is_none_if_no_execution_started_event():
114-
builder = ContextBuilder('test_function_context')
115-
builder.history_events = []
116-
builder.add_orchestrator_started_event()
117-
context = DurableOrchestrationContext.from_json(builder.to_json_string())
118-
assert context.version is None

0 commit comments

Comments
 (0)