11from collections .abc import Iterator
22from datetime import UTC , datetime , timedelta , timezone
3- from typing import Callable , List
3+ from typing import Callable
44from urllib .parse import urljoin
55from uuid import uuid4
66
@@ -40,7 +40,7 @@ def product_backend(order_db: MockOrderDB) -> MockProductBackend:
4040
4141
4242@pytest .fixture
43- def root_backend (order_db ) -> MockRootBackend :
43+ def root_backend (order_db : MockOrderDB ) -> MockRootBackend :
4444 return MockRootBackend (order_db )
4545
4646
@@ -87,24 +87,10 @@ def url_for(value: str) -> str:
8787
8888
8989@pytest .fixture
90- def products (mock_product_test_spotlight ) -> list [Product ]:
90+ def products (mock_product_test_spotlight : Product ) -> list [Product ]:
9191 return [mock_product_test_spotlight ]
9292
9393
94- @pytest .fixture
95- def opportunities (products : list [Product ]) -> list [Opportunity ]:
96- return [
97- Opportunity (
98- geometry = Point (type = "Point" , coordinates = [13.4 , 52.5 ]),
99- properties = {
100- "product_id" : products [0 ].id ,
101- "datetime" : (datetime .now (UTC ), datetime .now (UTC )),
102- "filter" : {},
103- },
104- )
105- ]
106-
107-
10894@pytest .fixture
10995def mock_provider () -> Provider :
11096 return Provider (
@@ -116,7 +102,7 @@ def mock_provider() -> Provider:
116102
117103
118104@pytest .fixture
119- def mock_test_spotlight_opportunities () -> List [Opportunity ]:
105+ def mock_test_spotlight_opportunities () -> list [Opportunity ]:
120106 """Fixture to create mock data for Opportunities for `test-spotlight-1`."""
121107 now = datetime .now (timezone .utc ) # Use timezone-aware datetime
122108 start = now
0 commit comments