Skip to content
This repository has been archived by the owner on Feb 8, 2018. It is now read-only.

Commit

Permalink
Failing test for #3482
Browse files Browse the repository at this point in the history
  • Loading branch information
chadwhitacre committed May 27, 2015
1 parent 117a7f3 commit d1536df
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion tests/py/test_teams.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.'
}
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit d1536df

Please sign in to comment.