fix: move pytest import to top of file

This commit is contained in:
lda
2026-06-09 20:12:27 +07:00 Verified
parent 168a51e4f9
commit 455e55098c
+2 -2
View File
@@ -4,6 +4,8 @@ import asyncio
from pathlib import Path
from typing import Any
import pytest
from wf_api.models import RawWorkflowPlan
from wf_api.operation_context import WorkflowOperationContext
from wf_api.run_lifecycle import create_pinned_environment, persist_stopped_run
@@ -116,8 +118,6 @@ async def test_resume_run_serializes_same_run_attempts(tmp_path: Path) -> None:
assert first_payload["status"] == "completed"
assert first_payload["output"] == {"answer": "first"}
import pytest
with pytest.raises(ValueError, match="is not interrupted"):
await second