Mārtiņš Šulcs
5f91c1420f
Reduce indent level
2018-09-25 17:44:08 +03:00
Mārtiņš Šulcs
61dd1c9a4f
Test currency not implemented, remove dead method.
2018-09-25 17:44:08 +03:00
Mārtiņš Šulcs
26fef2e116
More tests
2018-09-25 17:44:08 +03:00
Mārtiņš Šulcs
03d44f4bc3
Very naive to_currency implementation for NL
2018-09-25 17:44:08 +03:00
Mārtiņš Šulcs and Ernesto Rodriguez Ortiz
2a99ff1061
Cleanup ( #194 )
...
* Remove some dead code.
* Overloadable _cents_terse
* One setup should be enough
* Move gen_high_numwords up
* Cards are optional.
* Line length
* DRY set_hight_numwords for EU base.
* Remove unused error message. It has to be an exception anyway.
2018-09-17 09:30:36 -04:00
Mārtiņš Šulcs and Ernesto Rodriguez Ortiz
1e954c909b
Attempt at refactoring to_currency into base ( #135 )
...
* Attempt at refactoring lv to base
* Remove dead files.
* Use static props.
* Convert doctests, move utils out.
* Refactor lt
* Update and move ru doctests.
* Refactor ru.
* Refactor pl.
* Move uk doctests.
* Refactor uk.
* DRY
* Cleanup.
2017-11-09 10:13:01 -05:00
Mārtiņš Šulcs and Ernesto Rodriguez Ortiz
5a131fedc6
Long form for currency name is optional. Currency name rendering in e… ( #133 )
...
* Long form for currency name is optional. Currency name rendering in english.
* Missing encoding header.
2017-11-05 17:59:25 -05:00
Mārtiņš Šulcs and Ernesto Rodriguez Ortiz
a1a3c53b39
Improve lv ( #132 )
...
* Add legal form.
* Fix fractions (comma)
* Fix edge case, improve test coverage.
* Add most popular currencies
* PEP8 line length
* Fix some forms.
2017-11-01 13:04:09 -04:00
Mārtiņš Šulcs and Ernesto Rodriguez Ortiz
f9d8868794
Refactor and fix some issues with to_currency. Reduce code duplication. ( #129 )
...
* Refactor and fix some issues with to_currency. Reduce code duplication.
* Use unicode literals in uk testcase.
2017-10-31 20:17:13 -04:00
Mārtiņš Šulcs
7461ef6d78
Expose to to_currency.
2017-10-26 13:26:17 +03:00
Mārtiņš Šulcs
f01dfa2de0
Pass kwargs to converters.
2017-10-26 13:14:09 +03:00