コード例 #1
0
    def setUpClass(cls):
        WithForm460ADataTest.setUpClass()
        APITestCase.setUpClass()

        for m in IndependentMoney.objects.all():
            if hasattr(m.benefactor, 'committeebenefactor'):
                cls.committee = m.benefactor.committeebenefactor
                break
コード例 #2
0
    def setUpClass(cls):
        WithForm460ADataTest.setUpClass()
        APITestCase.setUpClass()

        for m in IndependentMoney.objects.all():
            if hasattr(m.benefactor, 'committeebenefactor'):
                cls.committee = m.benefactor.committeebenefactor
                break
コード例 #3
0
    def setUpClass(cls):
        WithForm460ADataTest.setUpClass()
        StaticLiveServerTestCase.setUpClass()

        cls.username = '******'
        cls.passwd = 'admin'
        User.objects.create_superuser(
            username=cls.username, password=cls.passwd, email='')

        cls.candidate = Candidate.objects.all()[0]
        if not cls.candidate.first_name:
            cls.candidate.first_name = 'dummy'
            cls.candidate.save()

        cls.img_path = op.join(op.dirname(__file__), 'files', 'img.jpg')
コード例 #4
0
    def setUpClass(cls):
        WithForm460ADataTest.setUpClass()
        StaticLiveServerTestCase.setUpClass()

        cls.username = '******'
        cls.passwd = 'admin'
        User.objects.create_superuser(username=cls.username,
                                      password=cls.passwd,
                                      email='')

        cls.candidate = Candidate.objects.all()[0]
        if not cls.candidate.first_name:
            cls.candidate.first_name = 'dummy'
            cls.candidate.save()

        cls.img_path = op.join(op.dirname(__file__), 'files', 'img.jpg')
コード例 #5
0
 def setUpClass(cls):
     WithForm460ADataTest.setUpClass()
     APITestCase.setUpClass()
コード例 #6
0
 def setUpClass(cls):
     WithForm460ADataTest.setUpClass()
     APITestCase.setUpClass()
コード例 #7
0
    def setUpClass(cls):
        WithForm460ADataTest.setUpClass()
        APITestCase.setUpClass()

        money = IndependentMoney.objects.all()[0]
        cls.beneficiary = money.beneficiary
コード例 #8
0
 def setUpClass(cls):
     WithForm460ADataTest.setUpClass(test_agency='COS', test_year='2015')
     APITestCase.setUpClass()
コード例 #9
0
    def setUpClass(cls):
        WithForm460ADataTest.setUpClass()
        APITestCase.setUpClass()

        money = IndependentMoney.objects.all()[0]
        cls.beneficiary = money.beneficiary