ctrochalakis /
tx-submissions
(http://transifex.org/)
fork of transifex
GSoC '08: Introducing a new transifex submission system, an api and a command line client
Clone URL : http://bitbucket.org/ctrochalakis/tx-submissions/ (size: 1.4 MB)
| commit 447: | 855a10d0ee7b |
| parent 446: | 3a3888e7ab1d |
| branch: | default |
Fix broken tests caused by db sessions.
We needed to create the database before we do the tests for sessions to work.
Changed (Δ164 bytes):
raw changeset »
transifex/tests/controllers/test_admin.py (3 lines added, 0 lines removed)
transifex/tests/controllers/test_root.py (3 lines added, 0 lines removed)
Up to file-list transifex/tests/controllers/test_admin.py:
| … | … | @@ -14,9 +14,12 @@ class TestAdminVisitor(unittest.TestCase |
14 |
14 |
"""Test how admin pages look to a visitor (non authenticated user).""" |
15 |
15 |
|
16 |
16 |
def setUp(self): |
17 |
bind_metadata() |
|
18 |
metadata.create_all() |
|
17 |
19 |
turbogears.startup.startTurboGears() |
18 |
20 |
|
19 |
21 |
def tearDown(self): |
22 |
metadata.drop_all() |
|
20 |
23 |
turbogears.startup.stopTurboGears() |
21 |
24 |
|
22 |
25 |
def test_adminpage_title(self): |
Up to file-list transifex/tests/controllers/test_root.py:
| … | … | @@ -12,9 +12,12 @@ class TestRootVisitor(unittest.TestCase) |
12 |
12 |
"""Test how pages look to a visitor (non authenticated user).""" |
13 |
13 |
|
14 |
14 |
def setUp(self): |
15 |
bind_metadata() |
|
16 |
metadata.create_all() |
|
15 |
17 |
turbogears.startup.startTurboGears() |
16 |
18 |
|
17 |
19 |
def tearDown(self): |
20 |
metadata.drop_all() |
|
18 |
21 |
turbogears.startup.stopTurboGears() |
19 |
22 |
|
20 |
23 |
def test_indextitle(self): |
