Skip to content

Commit 0ed6886

Browse files
committed
rename ExecutionResult .raw to .result
1 parent 649504e commit 0ed6886

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

src/runloop_api_client/sdk/async_execution_result.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -168,10 +168,10 @@ async def stderr(self, num_lines: Optional[int] = None) -> str:
168168
)
169169

170170
@property
171-
def raw(self) -> DevboxAsyncExecutionDetailView:
172-
"""Access the underlying API response.
171+
def result(self) -> DevboxAsyncExecutionDetailView:
172+
"""Get the raw execution result.
173173
174174
Returns:
175-
DevboxAsyncExecutionDetailView: Raw API payload.
175+
DevboxAsyncExecutionDetailView: Raw execution result.
176176
"""
177177
return self._result

src/runloop_api_client/sdk/execution_result.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -167,10 +167,10 @@ def stderr(self, num_lines: Optional[int] = None) -> str:
167167
)
168168

169169
@property
170-
def raw(self) -> DevboxAsyncExecutionDetailView:
171-
"""Access the underlying API response.
170+
def result(self) -> DevboxAsyncExecutionDetailView:
171+
"""Get the raw execution result.
172172
173173
Returns:
174-
DevboxAsyncExecutionDetailView: Raw API payload.
174+
DevboxAsyncExecutionDetailView: Raw execution result.
175175
"""
176176
return self._result

tests/sdk/test_async_execution_result.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -152,10 +152,10 @@ async def test_stderr_empty(self, mock_async_client: AsyncMock, execution_view:
152152
result = AsyncExecutionResult(mock_async_client, "dev_123", execution_view) # type: ignore[arg-type]
153153
assert await result.stderr() == ""
154154

155-
def test_raw_property(self, mock_async_client: AsyncMock, execution_view: MockExecutionView) -> None:
156-
"""Test raw property."""
155+
def test_result_property(self, mock_async_client: AsyncMock, execution_view: MockExecutionView) -> None:
156+
"""Test result property."""
157157
result = AsyncExecutionResult(mock_async_client, "dev_123", execution_view) # type: ignore[arg-type]
158-
assert result.raw == execution_view
158+
assert result.result == execution_view
159159

160160
@pytest.mark.asyncio
161161
async def test_stdout_with_truncation_and_streaming(

tests/sdk/test_execution_result.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -146,10 +146,10 @@ def test_stderr_empty(self, mock_client: Mock, execution_view: MockExecutionView
146146
result = ExecutionResult(mock_client, "dev_123", execution_view) # type: ignore[arg-type]
147147
assert result.stderr() == ""
148148

149-
def test_raw_property(self, mock_client: Mock, execution_view: MockExecutionView) -> None:
150-
"""Test raw property."""
149+
def test_result_property(self, mock_client: Mock, execution_view: MockExecutionView) -> None:
150+
"""Test result property."""
151151
result = ExecutionResult(mock_client, "dev_123", execution_view) # type: ignore[arg-type]
152-
assert result.raw == execution_view
152+
assert result.result == execution_view
153153

154154
def test_stdout_with_truncation_and_streaming(self, mock_client: Mock, mock_stream: Mock) -> None:
155155
"""Test stdout streams full output when truncated."""

0 commit comments

Comments
 (0)