Skip to content

Commit

Permalink
v0.6.2
Browse files Browse the repository at this point in the history
  • Loading branch information
davidpeckham committed Mar 25, 2024
1 parent d391d63 commit 0a63025
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 2 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## v0.6.2 (2024-03-24)

[GitHub release](https://github.com/davidpeckham/vin/releases/tag/v0.6.2)

### Fixes

* VIN.__str__ now returns the Vehicle Identification Number, not the description of the vehicle

## v0.6.1 (2024-03-18)

[GitHub release](https://github.com/davidpeckham/vin/releases/tag/v0.6.1)
Expand Down
2 changes: 1 addition & 1 deletion src/vin/__about__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2024-present David Peckham <[email protected]>
#
# SPDX-License-Identifier: MIT
__version__ = "0.6.1"
__version__ = "0.6.2"
2 changes: 1 addition & 1 deletion src/vin/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -620,4 +620,4 @@ def __repr__(self) -> str:
return f"VIN({self!s})"

def __str__(self) -> str:
return self.description
return self._vin
1 change: 1 addition & 0 deletions tests/test_vin.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ def test_raises_error_when_not_a_string() -> None:

def test_kia_niro_bev():
vin = VIN("KNDCE3LG2L5073161")
assert str(vin) == "KNDCE3LG2L5073161"
assert vin.model_year == 2020
assert vin.make == "Kia"
assert vin.model == "Niro"
Expand Down

0 comments on commit 0a63025

Please sign in to comment.