From 69c24cd72b80072bd2a6335cc0c7fd74a24fafc9 Mon Sep 17 00:00:00 2001 From: Chad Whitacre Date: Mon, 15 Apr 2013 12:52:28 -0400 Subject: [PATCH] Teach test suite about participant.type; #449 --- gittip/fake_data.py | 3 ++- gittip/testing/__init__.py | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/gittip/fake_data.py b/gittip/fake_data.py index e3c807fab8..56ab608a57 100644 --- a/gittip/fake_data.py +++ b/gittip/fake_data.py @@ -51,7 +51,8 @@ def fake_participant(is_admin=False, anonymous=False): last_ach_result='', is_suspicious=False, last_bill_result='', # Needed to not be suspicious - claimed_time=faker.dateTimeThisYear() + claimed_time=faker.dateTimeThisYear(), + type="individual" ) diff --git a/gittip/testing/__init__.py b/gittip/testing/__init__.py index b27cd97ac4..2240757b90 100644 --- a/gittip/testing/__init__.py +++ b/gittip/testing/__init__.py @@ -68,6 +68,7 @@ def tearDown(self): def make_participant(self, username, **kw): participant = Participant( username=username , username_lower=username.lower() + , type='individual' , **kw ) self.session.add(participant)