Ignore:
Timestamp:
10 Dec 2013, 08:40:03 (11 years ago)
Author:
Henrik Bettermann
Message:

Adjust tests.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.uniben/trunk/src/waeup/uniben/students/tests/test_browser.py

    r10740 r10836  
    3737
    3838
    39 class StudentProcessorTest(FunctionalTestCase):
    40     """Perform some batching tests.
    41     """
    42 
    43     layer = FunctionalLayer
    44 
    45     def setUp(self):
    46         super(StudentProcessorTest, self).setUp()
    47         # Setup a sample site for each test
    48         app = University()
    49         self.dc_root = tempfile.mkdtemp()
    50         app['datacenter'].setStoragePath(self.dc_root)
    51 
    52         # Prepopulate the ZODB...
    53         self.getRootFolder()['app'] = app
    54         # we add the site immediately after creation to the
    55         # ZODB. Catalogs and other local utilities are not setup
    56         # before that step.
    57         self.app = self.getRootFolder()['app']
    58         # Set site here. Some of the following setup code might need
    59         # to access grok.getSite() and should get our new app then
    60         setSite(app)
    61 
    62 
    63     def tearDown(self):
    64         super(StudentProcessorTest, self).tearDown()
    65         shutil.rmtree(self.workdir)
    66         shutil.rmtree(self.dc_root)
    67         clearSite()
    68         return
    69 
    7039class StudentUITests(StudentsFullSetup):
    7140    """Tests for customized student class views and pages
Note: See TracChangeset for help on using the changeset viewer.