Commit a2f5e260 by Sarina Canelake

Merge pull request #1699 from edx/sarina/fix-i18n-rake

Declare PYTHONPATH in i18n:test rake task
parents 0b98f3c6 878097d0
......@@ -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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment