Skip to content

Commit

Permalink
Merge pull request #214 from danieldotnl/ruff_issue
Browse files Browse the repository at this point in the history
Fix ruff issue with float to decimal
  • Loading branch information
danieldotnl authored Feb 5, 2025
2 parents 27f4a0f + 2c7dfba commit 015533b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/unit/test_source_meter.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def test_negative_update() -> None:
meter.update(Decimal(200))
assert meter.measured_value == Decimal(50)
meter.start()
assert meter.measured_value == Decimal(50.0)
assert meter.measured_value == Decimal("50.0")
meter.update(Decimal(0))
assert meter.measured_value == Decimal(-150)

Expand Down

0 comments on commit 015533b

Please sign in to comment.