Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
550f15ca
Commit
550f15ca
authored
Dec 20, 2013
by
Ned Batchelder
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
i18n tests run better: no subprocess output, and no duplication of tests.
parent
f1f76a9a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1 additions
and
10 deletions
+1
-10
i18n/execute.py
+1
-1
i18n/tests/__init__.py
+0
-6
i18n/tests/test_validate.py
+0
-3
No files found.
i18n/execute.py
View file @
550f15ca
...
...
@@ -11,7 +11,7 @@ def execute(command, working_directory=BASE_DIR):
Output is ignored.
"""
LOG
.
info
(
command
)
subprocess
.
c
all
(
command
.
split
(
' '
),
cwd
=
working_directory
)
subprocess
.
c
heck_output
(
command
.
split
(
' '
),
cwd
=
working_directory
,
stderr
=
subprocess
.
STDOUT
)
def
call
(
command
,
working_directory
=
BASE_DIR
):
...
...
i18n/tests/__init__.py
View file @
550f15ca
from
test_config
import
TestConfiguration
from
test_extract
import
TestExtract
from
test_generate
import
TestGenerate
from
test_converter
import
TestConverter
from
test_dummy
import
TestDummy
import
test_validate
i18n/tests/test_validate.py
View file @
550f15ca
...
...
@@ -24,11 +24,8 @@ def validate_po_file(filename, log):
Call GNU msgfmt -c on each .po file to validate its format.
Any errors caught by msgfmt are logged to log.
"""
# Skip this test for now because it's very noisy
raise
SkipTest
()
# Use relative paths to make output less noisy.
rfile
=
os
.
path
.
relpath
(
filename
,
LOCALE_DIR
)
(
out
,
err
)
=
call
([
'msgfmt'
,
'-c'
,
rfile
],
working_directory
=
LOCALE_DIR
)
if
err
!=
''
:
log
.
warn
(
'
\n
'
+
err
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment