diff --git a/CHANGELOG.md b/CHANGELOG.md index d0809b3..f62cbe2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/src/vin/__about__.py b/src/vin/__about__.py index 8de07e9..9ce4998 100644 --- a/src/vin/__about__.py +++ b/src/vin/__about__.py @@ -1,4 +1,4 @@ # SPDX-FileCopyrightText: 2024-present David Peckham # # SPDX-License-Identifier: MIT -__version__ = "0.6.1" +__version__ = "0.6.2" diff --git a/src/vin/__init__.py b/src/vin/__init__.py index c82a27a..615ff8b 100644 --- a/src/vin/__init__.py +++ b/src/vin/__init__.py @@ -620,4 +620,4 @@ def __repr__(self) -> str: return f"VIN({self!s})" def __str__(self) -> str: - return self.description + return self._vin diff --git a/tests/test_vin.py b/tests/test_vin.py index 9ed4c69..deca639 100644 --- a/tests/test_vin.py +++ b/tests/test_vin.py @@ -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"