Exemplo n.º 1
0
    def setUp(self):
        """Setup."""
        self.c = Client(HTTP_HOST=settings.RSR_DOMAIN)
        iati_version = Version(code=settings.IATI_VERSION)
        iati_version.save()

        self.resp = self.c.get('/projects/')
        self.en_resp = self.c.get('/en/projects/')
        self.es_resp = self.c.get('/es/projects/')
Exemplo n.º 2
0
 def setUp(self):
     """Setup."""
     valid_host = "partner1.{}".format(settings.AKVOAPP_DOMAIN)
     self.c = Client(HTTP_HOST=valid_host)
     o1 = Organisation(name='p1', long_name='Partner1')
     o1.save()
     ps1 = PartnerSite(organisation=o1, hostname='partner1', cname='projects.partner1.org')
     ps1.save()
     iati_version = Version(code=settings.IATI_VERSION)
     iati_version.save()
Exemplo n.º 3
0
 def setUp(self):
     """Setup."""
     valid_host = "partner1.{}".format(settings.AKVOAPP_DOMAIN)
     self.c = Client(HTTP_HOST=valid_host)
     o1 = Organisation(name='p1', long_name='Partner1')
     o1.save()
     ps1 = PartnerSite(organisation=o1,
                       hostname='partner1',
                       cname='projects.partner1.org')
     ps1.save()
     iati_version = Version(code=settings.IATI_VERSION)
     iati_version.save()
Exemplo n.º 4
0
 def setUp(self):
     """Setup."""
     # valid_host = "partner1.{}".format(settings.AKVOAPP_DOMAIN)
     self.cname = "projects.partner1.org"
     self.c = Client(HTTP_HOST=self.cname)
     o1 = Organisation.objects.create(name='p1', long_name='Partner1')
     PartnerSite.objects.create(
         organisation=o1,
         hostname='partner1',
         cname=self.cname,
         piwik_id=0,
     )
     iati_version = Version(code=settings.IATI_VERSION)
     iati_version.save()
Exemplo n.º 5
0
 def setUp(self):
     """Setup."""
     self.c = Client(HTTP_HOST=settings.RSR_DOMAIN)
     iati_version = Version(code=settings.IATI_VERSION)
     iati_version.save()
Exemplo n.º 6
0
 def setUp(self):
     """Setup."""
     self.c = Client(HTTP_HOST=settings.RSR_DOMAIN)
     iati_version = Version(code=settings.IATI_VERSION)
     iati_version.save()