Ejemplo n.º 1
0
 def setUp(self):
     self.parser = Org_Parser_201(None)
     self.version = VersionFactory.create(code='2.01')
     self.organisation = OrganisationFactory.create(
         id='org1',
         organisation_identifier='org1',
         iati_standard_version=self.version)
Ejemplo n.º 2
0
    def setUp(self):
        self.parser = Parser_201(None)

        version = VersionFactory.create(code='2.01')
        self.activity = iati_factory.ActivityFactory.create(
            id='IATI-0001',
            iati_identifier='IATI-0001',
            iati_standard_version=version,
            xml_source_ref='source_reference')
Ejemplo n.º 3
0
    def setUp(self):
        self.parser = Parser_201(None)

        version = VersionFactory.create(code='2.01')
        dataset = DatasetFactory.create(name='dataset-4')
        self.activity = iati_factory.ActivityFactory.create(
            iati_identifier='IATI-0001',
            iati_standard_version=version,
            dataset=dataset)
Ejemplo n.º 4
0
 def setUp(self):
     self.dataset = DatasetFactory.create(name='source_reference')
     version = VersionFactory(code='2.01')
     self.first_activity = iati_factory.ActivityFactory.create(
         iati_identifier='IATI-0001',
         iati_standard_version=version,
         dataset=self.dataset)
     self.second_activity = iati_factory.ActivityFactory.create(
         iati_identifier='IATI-0002',
         iati_standard_version=self.first_activity.iati_standard_version,
         dataset=self.dataset)
Ejemplo n.º 5
0
    def setUp(self):
        self.parser = Parser_201(None)

        # XXX: previously, django's 'flush' management command was called to
        # flush the database, but it breaks tests ('no table blah blah exists')
        # and etc., so let's just manually remove objects which were created
        # during previous fixtures.
        # TODO: get rid of fixtures and use factory-boy everywhere.
        Sector.objects.all().delete()

        version = VersionFactory.create(code='2.01')
        dataset = DatasetFactory.create(name='dataset-4')
        self.activity = iati_factory.ActivityFactory.create(
            iati_identifier='IATI-0001',
            iati_standard_version=version,
            dataset=dataset)
Ejemplo n.º 6
0
 def setUp(self):
     self.parser = Org_Parser_201(None)
     self.version = VersionFactory.create(code='2.01')
     self.organisation = OrganisationFactory.create(
         organisation_identifier='org1',
         iati_standard_version=self.version)