-
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.
tests for Honda Pilot models from vPIC
- Loading branch information
1 parent
1d5efeb
commit c58e4ab
Showing
3 changed files
with
1,905 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import parametrize_from_file | ||
from vin import VIN | ||
|
||
|
||
@parametrize_from_file | ||
def test_honda( | ||
vin: str, | ||
model_year: int, | ||
make: str, | ||
model: str, | ||
series: str, | ||
trim: str, | ||
body_class: str, | ||
electrification_level: str, | ||
) -> None: | ||
v = VIN(vin) | ||
# assert f"{model_year} {make} {model}".rstrip().replace(" ", " ") == v.description | ||
assert model_year == v.model_year | ||
assert make.lower() == v.make.lower() | ||
assert model == v.model | ||
|
||
if series: | ||
assert series == v.series | ||
|
||
if trim: | ||
assert trim == v.trim | ||
|
||
if body_class: | ||
assert body_class == v.body_class | ||
|
||
if electrification_level: | ||
assert electrification_level == v.electrification_level |
Oops, something went wrong.