From 3fdfa8fab9ccfa661baa823d892ed563958ebba4 Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Sun, 25 Apr 2010 00:18:15 +0000 Subject: Move locale out of fixtures and into localeapp to prevent test runner weirdness (finding nonminimal.txt.py). --- repoze/bfg/tests/test_configuration.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'repoze/bfg/tests/test_configuration.py') 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]) -- cgit v1.2.3