Ejemplo n.º 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
    def setUpClass(cls):
        WithForm460ADataTest.setUpClass()
        APITestCase.setUpClass()

        for m in IndependentMoney.objects.all():
            if hasattr(m.benefactor, 'committeebenefactor'):
                cls.committee = m.benefactor.committeebenefactor
                break
Ejemplo n.º 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')
Ejemplo n.º 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')
 def setUpClass(cls):
     WithForm460ADataTest.setUpClass()
     APITestCase.setUpClass()
Ejemplo n.º 6
0
 def setUpClass(cls):
     WithForm460ADataTest.setUpClass()
     APITestCase.setUpClass()
    def setUpClass(cls):
        WithForm460ADataTest.setUpClass()
        APITestCase.setUpClass()

        money = IndependentMoney.objects.all()[0]
        cls.beneficiary = money.beneficiary
 def setUpClass(cls):
     WithForm460ADataTest.setUpClass(test_agency='COS', test_year='2015')
     APITestCase.setUpClass()
Ejemplo n.º 9
0
    def setUpClass(cls):
        WithForm460ADataTest.setUpClass()
        APITestCase.setUpClass()

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