File tree Expand file tree Collapse file tree 2 files changed +17
-2
lines changed
Expand file tree Collapse file tree 2 files changed +17
-2
lines changed Original file line number Diff line number Diff line change 1- from common .test_tools .types import AssertMetricFixture , SnapshotFixture
1+ from common .test_tools .types import (
2+ AssertMetricFixture ,
3+ RunTasksFixture ,
4+ SnapshotFixture ,
5+ )
26
37__all__ = (
48 "AssertMetricFixture" ,
9+ "RunTasksFixture" ,
510 "SnapshotFixture" ,
611)
Original file line number Diff line number Diff line change 11from pathlib import Path
2- from typing import Protocol
2+ from typing import TYPE_CHECKING , Protocol
33
44import pytest
55
6+ if TYPE_CHECKING :
7+ from task_processor .models import TaskRun
8+
69
710class AssertMetricFixture (Protocol ):
811 def __call__ (
@@ -14,6 +17,13 @@ def __call__(
1417 ) -> None : ...
1518
1619
20+ class RunTasksFixture (Protocol ):
21+ def __call__ (
22+ self ,
23+ num_tasks : int ,
24+ ) -> "list[TaskRun]" : ...
25+
26+
1727class SnapshotFixture (Protocol ):
1828 def __call__ (self , name : str = "" ) -> "Snapshot" : ...
1929
You can’t perform that action at this time.
0 commit comments