コード例 #1
0
ファイル: test_maker.py プロジェクト: ScriptGadget/Creare
    def setUp(self):
        """ Setup Tests """
        self.community = Community(
            name='Test Community',
            slug=Community.get_slug_for_name('Test_Community')
            )

        self.community.put()

        self.maker = Maker(community=self.community,
                           store_name="Test Store",
                           store_description='A test store',
                           full_name="Tina Test",
                           email='*****@*****.**',
                           paypal_business_account_email = "*****@*****.**",
                           phone_number = "530111121",
                           location = "Right Here",
                           mailing_address = "111 Test Lane, Testable, CA 95945",
                           approval_status = 'Approved',
                           tags=['test', 'testy', 'testiferous'])
        self.maker.put()
コード例 #2
0
ファイル: test_community.py プロジェクト: ScriptGadget/Creare
 def setUp(self):
     """ Setup Tests """
     self.community = Community(name='Test Community',
                                slug=Community.get_slug_for_name('Test_Community'),
                                use_sandbox=True,
                                fee_percentage=10.0,
                                fee_minimum=0.3,
                                paypal_fee_percentage=2.9,
                                paypal_fee_minimum=0.3,
                                paypal_sandbox_business_id = '*****@*****.**',
                                paypal_sandbox_email_address = '*****@*****.**',
                                paypal_sandbox_api_username = '******',
                                paypal_sandbox_api_password = '******',
                                paypal_sandbox_api_signature = 'sand_api_sig',
                                paypal_sandbox_application_id = 'sand_api_app_id',
                                paypal_business_id = '*****@*****.**',
                                paypal_email_address = '*****@*****.**',
                                paypal_api_username = '******',
                                paypal_api_password = '******',
                                paypal_api_signature = 'api_sig',
                                paypal_application_id = 'api_app_id',
                                )
     self.community.put()
コード例 #3
0
ファイル: test_community.py プロジェクト: ScriptGadget/Creare
 def testSlugs(self):
     name = 'name with a space'
     slug = Community.get_slug_for_name(name)
     self.assertTrue(slug == 'name-with-a-space')