Skip to content
This repository was archived by the owner on Apr 2, 2025. It is now read-only.

Commit 5a4e8c8

Browse files
author
Phil Varner
committed
fix mypy warning on unused var
1 parent 57b9f78 commit 5a4e8c8

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

tests/opportunity_test.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
import pytest
55
from fastapi.testclient import TestClient
6+
67
from stapi_fastapi.models.opportunity import Opportunity, OpportunityCollection
78

89
from .backends import MockProductBackend
@@ -15,7 +16,7 @@ def test_search_opportunities_response(
1516
mock_test_spotlight_opportunities: List[Opportunity],
1617
product_backend: MockProductBackend,
1718
stapi_client: TestClient,
18-
assert_link
19+
assert_link,
1920
) -> None:
2021
product_backend._opportunities = mock_test_spotlight_opportunities
2122

@@ -53,7 +54,7 @@ def test_search_opportunities_response(
5354
body = response.json()
5455

5556
try:
56-
oc = OpportunityCollection(**body)
57+
_ = OpportunityCollection(**body)
5758
except Exception as _:
5859
pytest.fail("response is not an opportunity collection")
5960

tests/product_test.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,8 @@ def test_product_response_self_link(
3333
assert_link(
3434
url, body, "order-parameters", f"/products/{product_id}/order-parameters"
3535
)
36-
assert_link(
37-
url, body, "opportunities", f"/products/{product_id}/opportunities"
38-
)
39-
assert_link(
40-
url, body, "create-order", f"/products/{product_id}/order"
41-
)
36+
assert_link(url, body, "opportunities", f"/products/{product_id}/opportunities")
37+
assert_link(url, body, "create-order", f"/products/{product_id}/order")
4238

4339

4440
@pytest.mark.parametrize("product_id", ["test-spotlight"])

0 commit comments

Comments
 (0)