mirumee / prices

Python price handling for humans.
Other
268 stars 39 forks source link

Add check for Price constructed from Amounts of different currencies #26

Closed koradon closed 6 years ago

koradon commented 6 years ago

Add check which raise ValueError if Price was constructed with Amounts of different currencies. Add test recreating issue. Step version to 1.0.1-beta.

Fixes #25

codecov-io commented 6 years ago

Codecov Report

Merging #26 into master will decrease coverage by <.01%. The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #26      +/-   ##
==========================================
- Coverage   99.65%   99.64%   -0.01%     
==========================================
  Files           7        6       -1     
  Lines         290      285       -5     
  Branches       35       36       +1     
==========================================
- Hits          289      284       -5     
  Misses          1        1
Impacted Files Coverage Δ
prices/price.py 98.61% <100%> (+0.03%) :arrow_up:
prices/__init__.py

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update e56c162...b37deba. Read the comment docs.