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

Commit

Permalink
Create unreviewed teams too
Browse files Browse the repository at this point in the history
  • Loading branch information
rohitpaulk committed Jul 7, 2015
1 parent 1c2b698 commit 1d00bf4
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions gratipay/utils/fake_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,6 @@ def fake_participant(db, number="singular", is_admin=False):
def fake_team(db, teamowner):
"""Create a fake team
"""
isapproved = [True, False]
productorservice = ['Product','Service']

teamname = faker.first_name() + fake_text_id(3)
teamslugname = faker.city()

Expand All @@ -97,7 +94,7 @@ def fake_team(db, teamowner):
, getting_paid=fake_sentence()
, revenue_model=fake_sentence()
, owner=teamowner.username
, is_approved=random.sample(isapproved,1)[0]
, is_approved=random.choice([True, False, None])
)
except IntegrityError:
return fake_team(db, teamowner)
Expand Down

0 comments on commit 1d00bf4

Please sign in to comment.