Set replace_dots everywhere

The goal is to change the default value in CleanDecimal
This commit is contained in:
Florent 2014-08-21 10:21:53 +02:00
commit a434f33a61
10 changed files with 16 additions and 17 deletions

View file

@ -116,7 +116,7 @@ class IndexPage(LoggedPage, HTMLPage):
is_here = "//div[@id='situation']"
def get_balance(self):
return -CleanDecimal('.')(self.doc.xpath('//div[@id = "total-sommes-dues"]/p[contains(text(), "sommes dues")]/span[@class = "montant"]')[0])
return -CleanDecimal('.', replace_dots=True)(self.doc.xpath('//div[@id = "total-sommes-dues"]/p[contains(text(), "sommes dues")]/span[@class = "montant"]')[0])
class OperationsPage(LoggedPage, HTMLPage):
is_here = "//div[@id='releve-reserve-credit'] | //div[@id='operations-recentes']"