Changeset 371:cd638410a583

Show
Ignore:
Timestamp:
08/26/08 08:21:58 (3 months ago)
Author:
Christos Trochalakis <yatiohi@…>
Branch:
default
Message:

Fix broken tests caused by db sessions.

We needed to create the database before we do the tests for sessions to work.

Location:
transifex/tests/controllers
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • transifex/tests/controllers/test_admin.py

    r345 r371  
    1515 
    1616    def setUp(self): 
     17        bind_metadata() 
     18        metadata.create_all() 
    1719        turbogears.startup.startTurboGears() 
    1820 
    1921    def tearDown(self): 
     22        metadata.drop_all() 
    2023        turbogears.startup.stopTurboGears() 
    2124         
  • transifex/tests/controllers/test_root.py

    r345 r371  
    1313 
    1414    def setUp(self): 
     15        bind_metadata() 
     16        metadata.create_all() 
    1517        turbogears.startup.startTurboGears() 
    1618 
    1719    def tearDown(self): 
     20        metadata.drop_all() 
    1821        turbogears.startup.stopTurboGears() 
    1922