From d1536dfb3914f1bdae01d5f30dfa2b59dd198b2d Mon Sep 17 00:00:00 2001 From: Chad Whitacre Date: Wed, 27 May 2015 11:12:50 -0400 Subject: [PATCH] Failing test for #3482 --- tests/py/test_teams.py | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/tests/py/test_teams.py b/tests/py/test_teams.py index 4750d84471..e100c7ce47 100644 --- a/tests/py/test_teams.py +++ b/tests/py/test_teams.py @@ -13,7 +13,7 @@ class TestNewTeams(Harness): 'homepage': 'http://gratipay.com/', 'agree_terms': 'true', 'product_or_service': 'We make widgets.', - 'revenue_model': 'People pay us', + 'revenue_model': 'People pay us.', 'getting_involved': 'People do stuff.', 'getting_paid': 'We pay people.' } @@ -46,6 +46,17 @@ def test_can_create_new_team(self): assert team assert team.owner == 'alice' + def test_all_fields_persist(self): + self.make_participant('alice', claimed_time='now', email_address='', last_ach_result='') + self.post_new(dict(self.valid_data)) + team = Team.from_slug('gratiteam') + assert team.name == 'Gratiteam' + assert team.homepage == 'http://gratipay.com/' + assert team.product_or_service == 'We make widgets.' + assert team.revenue_model == 'People pay us.' + assert team.getting_involved == 'People do stuff.' + assert team.getting_paid == 'We pay people.' + def test_401_for_anon_creating_new_team(self): self.post_new(self.valid_data, auth_as=None, expected=401) assert self.db.one("SELECT COUNT(*) FROM teams") == 0