Ignore:
Timestamp:
3 Oct 2012, 21:36:14 (12 years ago)
Author:
Henrik Bettermann
Message:

Remove temporary dirs in tests.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/hostels/tests.py

    r9202 r9283  
    434434        return
    435435
     436    def tearDown(self):
     437        super(ExportTests, self).tearDown()
     438        clearSite()
     439        shutil.rmtree(os.path.dirname(self.outfile))
     440
    436441class HostelProcessorTest(HostelsFullSetup):
    437442
     
    441446        self.processor = HostelProcessor()
    442447        self.workdir = tempfile.mkdtemp()
    443         self.csv_file = os.path.join(self.workdir, 'sample_student_data.csv')
     448        self.csv_file = os.path.join(self.workdir, 'sample_hostel_data.csv')
    444449        open(self.csv_file, 'wb').write(HOSTEL_SAMPLE_DATA)
    445450        num, num_warns, fin_file, fail_file = self.processor.doImport(
     
    462467            in logcontent)
    463468        shutil.rmtree(os.path.dirname(fin_file))
    464         return
     469        shutil.rmtree(self.workdir)
     470        return
Note: See TracChangeset for help on using the changeset viewer.