Merge pull request #1699 from edx/sarina/fix-i18n-rake
Declare PYTHONPATH in i18n:test rake task
This commit is contained in:
@@ -10,6 +10,10 @@ from logsettings import get_logger_config
|
||||
|
||||
DEBUG = True
|
||||
USE_I18N = True
|
||||
# For displaying the dummy text, we need to provide a language mapping.
|
||||
LANGUAGES = (
|
||||
('fr', 'Francais'),
|
||||
)
|
||||
TEMPLATE_DEBUG = DEBUG
|
||||
LOGGING = get_logger_config(ENV_ROOT / "log",
|
||||
logging_env="dev",
|
||||
|
||||
@@ -17,6 +17,10 @@ from logsettings import get_logger_config
|
||||
|
||||
DEBUG = True
|
||||
USE_I18N = True
|
||||
# For displaying the dummy text, we need to provide a language mapping.
|
||||
LANGUAGES = (
|
||||
('fr', 'Francais'),
|
||||
)
|
||||
TEMPLATE_DEBUG = True
|
||||
|
||||
|
||||
|
||||
@@ -67,7 +67,8 @@ namespace :i18n do
|
||||
desc "Run tests for the internationalization library"
|
||||
task :test => "i18n:validate:gettext" do
|
||||
test = File.join(REPO_ROOT, "i18n", "tests")
|
||||
sh("nosetests #{test}")
|
||||
pythonpath_prefix = "PYTHONPATH=#{REPO_ROOT}/i18n:$PYTHONPATH"
|
||||
sh("#{pythonpath_prefix} nosetests #{test}")
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user