~ubuntu-branches/ubuntu/natty/moin/natty-updates

« back to all changes in this revision

Viewing changes to MoinMoin/config/_tests/test_configs.py

  • Committer: Bazaar Package Importer
  • Author(s): Jonas Smedegaard
  • Date: 2008-06-22 21:17:13 UTC
  • mfrom: (0.9.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20080622211713-fpo2zrq3s5dfecxg
Tags: 1.7.0-3
Simplify /etc/moin/wikilist format: "USER URL" (drop unneeded middle
CONFIG_DIR that was wrongly advertised as DATA_DIR).  Make
moin-mass-migrate handle both formats and warn about deprecation of
the old one.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
from MoinMoin.config.multiconfig import DefaultConfig
 
2
 
 
3
class NoUnderlay(DefaultConfig):
 
4
    data_underlay_dir = None
 
5
 
 
6
_tests = [NoUnderlay, ]
 
7
 
 
8
class TestConfigs:
 
9
    def testConfigs(self):
 
10
        for cls in _tests:
 
11
            cls.data_dir = self.request.cfg.data_dir
 
12
            # quite a bad hack to make _importPlugin succeed
 
13
            cls('MoinMoin')