From 51a9ec6f3263f8c50256122aa7821857f073ef4c Mon Sep 17 00:00:00 2001 From: Changaco Date: Sat, 13 Dec 2014 15:04:53 +0100 Subject: [PATCH] fix tests --- tests/py/test_goal_json.py | 16 ++++++++-------- tests/py/test_statement_json.py | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/tests/py/test_goal_json.py b/tests/py/test_goal_json.py index 4fafd1c184..7621119687 100644 --- a/tests/py/test_goal_json.py +++ b/tests/py/test_goal_json.py @@ -27,23 +27,23 @@ def test_participant_can_set_their_goal_to_null(self): def test_participant_can_set_their_goal_to_zero(self): response = self.change_goal("0") - actual = json.loads(response.body)['goal'] - assert actual == "0" + actual = json.loads(response.body)['goal_l'] + assert actual == "$0" def test_participant_can_set_their_goal_to_a_custom_amount(self): response = self.change_goal("custom", "100.00") - actual = json.loads(response.body)['goal'] - assert actual == "100" + actual = json.loads(response.body)['goal_l'] + assert actual == "$100" def test_custom_amounts_can_include_comma(self): response = self.change_goal("custom", "1,100.00") - actual = json.loads(response.body)['goal'] - assert actual == "1,100" + actual = json.loads(response.body)['goal_l'] + assert actual == "$1,100" def test_wonky_custom_amounts_are_standardized(self): response = self.change_goal("custom", ",100,100.00000") - actual = json.loads(response.body)['goal'] - assert actual == "100,100" + actual = json.loads(response.body)['goal_l'] + assert actual == "$100,100" def test_anonymous_gets_404(self): response = self.change_goal("100.00", auth_as=None, expecting_error=True) diff --git a/tests/py/test_statement_json.py b/tests/py/test_statement_json.py index 906fa382a2..e92aed3912 100644 --- a/tests/py/test_statement_json.py +++ b/tests/py/test_statement_json.py @@ -20,7 +20,7 @@ def change_statement(self, lang, statement, auth_as='alice', def test_participant_can_change_their_statement(self): response = self.change_statement('en', 'Lorem ipsum') - actual = json.loads(response.body)['content'] + actual = json.loads(response.body)['html'] assert actual == '

Lorem ipsum

\n' def test_anonymous_gets_403(self):