Skip to content

Commit

Permalink
Exclude a few lines from coverage (#143)
Browse files Browse the repository at this point in the history
  • Loading branch information
joro75 authored Feb 13, 2022
1 parent 4456499 commit d0f77ca
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 3 additions & 1 deletion mytoyota/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,9 @@ async def get_odometer_endpoint(self, vin: str) -> list[dict[str, Any]] | None:
endpoint=f"/vehicle/{vin}/addtionalInfo",
)

async def get_parking_endpoint(self, vin: str) -> dict[str, Any] | None:
async def get_parking_endpoint(
self, vin: str
) -> dict[str, Any] | None: # pragma: no cover
"""Get where you have parked your car."""
return await self.controller.request(
method="GET",
Expand Down
2 changes: 1 addition & 1 deletion mytoyota/models/dashboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from mytoyota.utils.conversions import convert_to_miles

if TYPE_CHECKING:
from mytoyota.models.vehicle import Vehicle
from mytoyota.models.vehicle import Vehicle # pragma: no cover


class Dashboard:
Expand Down
4 changes: 3 additions & 1 deletion tests/test_myt.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,9 @@ async def request(
"""Shared request method"""

if method not in ("GET", "POST", "PUT", "DELETE"):
raise ToyotaInternalError("Invalid request method provided")
raise ToyotaInternalError(
"Invalid request method provided"
) # pragma: no cover

_ = base_url

Expand Down

0 comments on commit d0f77ca

Please sign in to comment.