-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
19151d8
commit b52fb32
Showing
12 changed files
with
167 additions
and
110 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Tests these vPIC vehicle types: | ||
|
||
* Passenger Cars | ||
* Multipurpose Passenger Vehicles (MPV) | ||
* Light Trucks |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# SPDX-FileCopyrightText: 2024-present David Peckham <[email protected]> | ||
# | ||
# SPDX-License-Identifier: MIT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import parametrize_from_file | ||
from vin import VIN | ||
|
||
|
||
@parametrize_from_file | ||
def test_decode(vin: str, model_year: int, make: str, model: str) -> None: | ||
v = VIN(vin) | ||
assert f"{model_year} {make} {model}".rstrip().replace(" ", " ") == v._vehicle.name | ||
|
||
|
||
def test_inconclusive_model_year() -> None: | ||
"""This 1995 Chevy truck VIN model year character doesn't conclusively | ||
identify the model year, but we can decode it using vPIC data. | ||
""" | ||
assert VIN("2GCEC19Z0S1245490").model_year == 1995 |
Oops, something went wrong.