Skip to content

Commit

Permalink
feat: fixed assertions
Browse files Browse the repository at this point in the history
  • Loading branch information
aytekin-smartcar committed May 10, 2024
1 parent d2970c9 commit 5d975d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/e2e/test_vehicle.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,8 @@ def test_service_history(ford_car):
# Iterate over each item in the 'items' list to perform further validations.
for item in response.items:
assert isinstance(
item["odometerDistance"], float
), "Odometer distance should be a float"
item["odometerDistance"], (float, int)
), "Odometer distance should be a numeric type (float or int)"
assert (
item["odometerDistance"] > 0
), "Odometer distance should be greater than zero"
Expand Down

0 comments on commit 5d975d9

Please sign in to comment.