Mediawiki's unit test

This commit is contained in:
Cqoicebordel 2015-02-03 19:56:26 +01:00
parent 1ea5bc63a5
commit a96208be96
3 changed files with 134 additions and 6 deletions

View file

@ -13,12 +13,9 @@ def request(query, params):
if not m:
# wrong query
return params
try:
ammount, from_currency, to_currency = m.groups()
ammount = float(ammount)
except:
# wrong params
return params
ammount, from_currency, to_currency = m.groups()
ammount = float(ammount)
q = (from_currency + to_currency).upper()