コード例 #1
0
 def setUpTestData(cls):
     # volunteer user - totally useless
     common.initialize_empty_volunteer()
     # organization user - no offers
     common.initialize_empty_organization()
     # volunteer user - offers, organizations
     common.initialize_filled_volunteer_and_organization()
コード例 #2
0
 def setUpTestData(cls):
     # volunteer user - totally useless
     common.initialize_empty_volunteer()
     # organization user - no offers
     common.initialize_empty_organization()
     # volunteer user - badges, offers, organizations
     common.initialize_filled_volunteer_and_organization()
コード例 #3
0
 def setUpTestData(cls):
     # admin user
     cls.admin = common.initialize_administrator(
         username=cls.test_admin_username,
         email=cls.test_admin_email,
         password=cls.test_admin_password)
     # volunteer user - totally useless
     cls.volunteer = common.initialize_empty_volunteer()
     # organization user - no offers
     common.initialize_empty_organization()
     # volunteer user - offers, organizations
     common.initialize_filled_volunteer_and_organization()
コード例 #4
0
 def setUpTestData(cls):
     # admin user
     cls.admin = common.initialize_administrator(
         username=cls.test_admin_username, email=cls.test_admin_email,
         password=cls.test_admin_password
     )
     # volunteer user - totally useless
     cls.volunteer = common.initialize_empty_volunteer()
     # organization user - no offers
     common.initialize_empty_organization()
     # volunteer user - offers, organizations
     common.initialize_filled_volunteer_and_organization()
コード例 #5
0
 def setUpTestData(cls):
     u"""Data fixtures for all tests."""
     # volunteer user - totally useless
     cls.volunteer = common.initialize_empty_volunteer()
     # organization user - no offers
     cls.organization = common.initialize_empty_organization()
     # volunteer user - offers, organizations
     cls.volunteer2, cls.organization2 = \
         common.initialize_filled_volunteer_and_organization()
コード例 #6
0
 def setUpTestData(cls):
     """Data fixtures for all tests."""
     # volunteer user - totally useless
     cls.volunteer = common.initialize_empty_volunteer()
     # organization user - no offers
     cls.organization = common.initialize_empty_organization()
     # volunteer user - offers, organizations
     cls.volunteer2, cls.organization2 = \
         common.initialize_filled_volunteer_and_organization()