Edgewall Software

Changes between Initial Version and Version 1 of Ticket #12310, comment 6


Ignore:
Timestamp:
Jan 8, 2016, 5:34:29 AM (8 years ago)
Author:
Jun Omae

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #12310, comment 6

    initial v1  
    99I get the same errors with Python 2.5, 2.6 and 2.7 on Linux.
    1010
    11 `WikiTestCase` in `trac.wiki.tests.formatter` creates a `EnvironmentStub` instance on `__init__()`, not `setUp()`. It means that the database is initialized before running all tests. I think we should create a `EnvironmentStub` instance in `WikiTestCase.setUp()`. See attachment:t12310-wikitestcase-setup.diff, which is verified with all database backends.
     11`WikiTestCase` in `trac.wiki.tests.formatter` creates a `EnvironmentStub` instance on `__init__()`, not `setUp()`. It means that the database is initialized before running all tests. I think we should create a `EnvironmentStub` instance in `WikiTestCase.setUp()` in order to create it on each test. See attachment:t12310-wikitestcase-setup.diff, which is verified with all database backends.