Mercurial > bitten > bitten-test
changeset 711:503286c23f07 0.6.x
0.6dev: Merged [788] from trunk.
author | hodgestar |
---|---|
date | Wed, 28 Oct 2009 22:20:20 +0000 |
parents | 9f5ee2cb56e7 |
children | 75d53795bf8c |
files | bitten/tests/upgrades.py |
diffstat | 1 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/bitten/tests/upgrades.py +++ b/bitten/tests/upgrades.py @@ -30,7 +30,12 @@ def setUp(self): self.env = EnvironmentStub() - self.env.config.set('trac', 'database', self.env.dburi) + if hasattr(self.env, 'dburi'): + # Trac gained support for testing against different databases in 0.11.5 + # If this support is available, we copy the test db uri configuration + # into the main test config so it can be picked up by + # upgrades._parse_scheme() + self.env.config.set('trac', 'database', self.env.dburi) self.env.path = tempfile.mkdtemp() logs_dir = self.env.config.get("bitten", "logs_dir") if os.path.isabs(logs_dir):