Skip to content

Commit

Permalink
fixing integers to string stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
hltbra committed Sep 12, 2009
1 parent 188f70a commit 0caf444
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions examples/calculator_en-us.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ def set_my_calculator(self):
def sum_one_to_one(self):
self.result = self.calculator.sum(1, 1)

@Then('I have $value as result', 2)
@Then('I have $value as result', '2')
def get_result(self, value):
self.result |should_be| value
self.result |should_be| int(value)


class SumAndReduceScenario(Scenario):
Expand Down
4 changes: 2 additions & 2 deletions examples/calculator_pt-br.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ def criar_calculadora(self):
def somar_um_e_um(self):
self.resultado = self.calculadora.somar(1, 1)

@Entao('eu tenho $valor como resultado', 2)
@Entao('eu tenho $valor como resultado', '2')
def pegar_resultado(self, valor):
self.resultado |should_be| valor
self.resultado |should_be| int(valor)


class SomaESubtracao(Scenario):
Expand Down

0 comments on commit 0caf444

Please sign in to comment.