Example #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)
Example #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')
Example #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)
    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)
 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)