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
6401f453
Commit
6401f453
authored
Mar 23, 2015
by
Ned Batchelder
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change how conf/locale/eo is cleaned up, so that it always happens
parent
dadc78aa
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
6 deletions
+14
-6
common/lib/i18n/tests/test_extract_and_generate.py
+14
-3
pavelib/tests.py
+0
-3
No files found.
common/lib/i18n/tests/test_extract_and_generate.py
View file @
6401f453
...
...
@@ -3,12 +3,13 @@ This test tests that i18n extraction (`paver i18n_extract -v`) works properly.
"""
from
datetime
import
datetime
,
timedelta
import
os
import
sys
import
string
# pylint: disable=deprecated-module
import
random
import
re
import
sys
import
string
import
subprocess
from
unittest
import
TestCase
from
mock
import
patch
from
polib
import
pofile
from
pytz
import
UTC
...
...
@@ -41,6 +42,16 @@ class TestGenerate(TestCase):
extract
.
main
(
verbosity
=
0
)
dummy
.
main
(
verbosity
=
0
)
@classmethod
def
tearDownClass
(
cls
):
# Clear the Esperanto directory of any test artifacts
cmd
=
"git checkout conf/locale/eo"
sys
.
stderr
.
write
(
"Cleaning up eo: "
+
cmd
)
sys
.
stderr
.
flush
()
returncode
=
subprocess
.
call
(
cmd
,
shell
=
True
)
assert
returncode
==
0
super
(
TestGenerate
,
cls
)
.
tearDownClass
()
def
setUp
(
self
):
# Subtract 1 second to help comparisons with file-modify time succeed,
# since os.path.getmtime() is not millisecond-accurate
...
...
pavelib/tests.py
View file @
6401f453
...
...
@@ -115,9 +115,6 @@ def test_lib(options):
test_suite
=
suites
.
PythonTestSuite
(
'python tests'
,
subsuites
=
lib_tests
,
**
opts
)
test_suite
.
run
()
# Clear the Esperanto directory of any test artifacts
sh
(
'git checkout conf/locale/eo'
)
@task
@needs
(
...
...
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