diff options
| author | Chris McDonough <chrism@agendaless.com> | 2010-04-25 00:18:15 +0000 |
|---|---|---|
| committer | Chris McDonough <chrism@agendaless.com> | 2010-04-25 00:18:15 +0000 |
| commit | 3fdfa8fab9ccfa661baa823d892ed563958ebba4 (patch) | |
| tree | 8f95ba60ace308c7604003c82416a0b056520e21 /repoze/bfg/tests/test_configuration.py | |
| parent | 0b326088803e0c1adf58c550b329fbc33f884346 (diff) | |
| download | pyramid-3fdfa8fab9ccfa661baa823d892ed563958ebba4.tar.gz pyramid-3fdfa8fab9ccfa661baa823d892ed563958ebba4.tar.bz2 pyramid-3fdfa8fab9ccfa661baa823d892ed563958ebba4.zip | |
Move locale out of fixtures and into localeapp to prevent test runner weirdness (finding nonminimal.txt.py).
Diffstat (limited to 'repoze/bfg/tests/test_configuration.py')
| -rw-r--r-- | repoze/bfg/tests/test_configuration.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/repoze/bfg/tests/test_configuration.py b/repoze/bfg/tests/test_configuration.py index a1e753179..90e074e9a 100644 --- a/repoze/bfg/tests/test_configuration.py +++ b/repoze/bfg/tests/test_configuration.py @@ -1825,9 +1825,9 @@ class ConfiguratorTests(unittest.TestCase): import os from repoze.bfg.interfaces import ITranslationDirectories config = self._makeOne() - config.add_translation_dirs('repoze.bfg.tests.fixtures:locale') + config.add_translation_dirs('repoze.bfg.tests.localeapp:locale') here = os.path.dirname(__file__) - locale = os.path.join(here, 'fixtures', 'locale') + locale = os.path.join(here, 'localeapp', 'locale') self.assertEqual(config.registry.getUtility(ITranslationDirectories), [locale]) @@ -1838,7 +1838,7 @@ class ConfiguratorTests(unittest.TestCase): config = self._makeOne() manager.push({'request':request, 'registry':config.registry}) try: - config.add_translation_dirs('repoze.bfg.tests.fixtures:locale') + config.add_translation_dirs('repoze.bfg.tests.localeapp:locale') translate = config.registry.getUtility(IChameleonTranslate) self.assertEqual(translate('Approve'), u'Approve') finally: @@ -1849,7 +1849,7 @@ class ConfiguratorTests(unittest.TestCase): from repoze.bfg.interfaces import ITranslationDirectories config = self._makeOne() here = os.path.dirname(__file__) - locale = os.path.join(here, 'fixtures', 'locale') + locale = os.path.join(here, 'localeapp', 'locale') config.add_translation_dirs(locale) self.assertEqual(config.registry.getUtility(ITranslationDirectories), [locale]) |
