Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exclude a few lines from coverage #143

Merged
merged 1 commit into from
Feb 13, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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