Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
F
fuchsia.googlesource.com-third_party-mako
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
fuchsia-mirror
fuchsia.googlesource.com-third_party-mako
Commits
287fa947
Commit
287fa947
authored
17 years ago
by
Philip Jenvey
Browse files
Options
Downloads
Patches
Plain Diff
o move the babel plugin test template to test_htdocs
o update the babelplugin test for babel 0.9
parent
8fb982e3
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
test/babelplugin.py
+16
-17
16 additions, 17 deletions
test/babelplugin.py
test_htdocs/gettext.mako
+0
-0
0 additions, 0 deletions
test_htdocs/gettext.mako
with
16 additions
and
17 deletions
test/babelplugin.py
+
16
−
17
View file @
287fa947
...
...
@@ -8,27 +8,26 @@ try:
class
ExtractMakoTestCase
(
unittest
.
TestCase
):
def
test_extract
(
self
):
mako_tmpl
=
open
(
os
.
path
.
join
(
os
.
path
.
dirname
(
__file__
),
'
templates
'
,
'
gettext.mako
'
))
mako_tmpl
=
open
(
os
.
path
.
join
(
'
test_htdocs
'
,
'
gettext.mako
'
))
messages
=
list
(
extract
(
mako_tmpl
,
{
'
_
'
:
None
,
'
gettext
'
:
None
,
'
ungettext
'
:
(
1
,
2
)},
[
'
TRANSLATOR:
'
],
{}))
expected
=
\
[(
1
,
u
'
_
'
,
'
Page arg 1
'
,
[]),
(
1
,
u
'
_
'
,
'
Page arg 2
'
,
[]),
(
10
,
u
'
gettext
'
,
'
Begin
'
,
[]),
(
14
,
u
'
_
'
,
'
Hi there!
'
,
[
u
'
Hi there!
'
]),
(
19
,
u
'
_
'
,
'
Hello
'
,
[]),
(
22
,
u
'
_
'
,
'
Welcome
'
,
[]),
(
25
,
u
'
_
'
,
'
Yo
'
,
[]),
(
36
,
u
'
_
'
,
'
The
'
,
[
u
'
Ensure so and
'
,
u
'
so, thanks
'
]),
(
36
,
u
'
ungettext
'
,
(
'
bunny
'
,
'
bunnies
'
,
''
),
[]),
(
41
,
u
'
_
'
,
'
Goodbye
'
,
[
u
'
Good bye
'
]),
(
44
,
u
'
_
'
,
'
Babel
'
,
[]),
(
45
,
u
'
ungettext
'
,
(
'
hella
'
,
'
hellas
'
),
[]),
(
62
,
u
'
_
'
,
'
Goodbye, really!
'
,
[
u
'
HTML comment
'
]),
(
65
,
u
'
_
'
,
'
P.S. byebye
'
,
[]),
(
71
,
u
'
_
'
,
'
Top
'
,
[])]
[(
1
,
'
_
'
,
u
'
Page arg 1
'
,
[]),
(
1
,
'
_
'
,
u
'
Page arg 2
'
,
[]),
(
10
,
'
gettext
'
,
u
'
Begin
'
,
[]),
(
14
,
'
_
'
,
u
'
Hi there!
'
,
[
u
'
Hi there!
'
]),
(
19
,
'
_
'
,
u
'
Hello
'
,
[]),
(
22
,
'
_
'
,
u
'
Welcome
'
,
[]),
(
25
,
'
_
'
,
u
'
Yo
'
,
[]),
(
36
,
'
_
'
,
u
'
The
'
,
[
u
'
Ensure so and
'
,
u
'
so, thanks
'
]),
(
36
,
'
ungettext
'
,
(
u
'
bunny
'
,
u
'
bunnies
'
,
None
),
[]),
(
41
,
'
_
'
,
u
'
Goodbye
'
,
[
u
'
Good bye
'
]),
(
44
,
'
_
'
,
u
'
Babel
'
,
[]),
(
45
,
'
ungettext
'
,
(
u
'
hella
'
,
u
'
hellas
'
,
None
),
[]),
(
62
,
'
_
'
,
u
'
Goodbye, really!
'
,
[
u
'
HTML comment
'
]),
(
65
,
'
_
'
,
u
'
P.S. byebye
'
,
[]),
(
71
,
'
_
'
,
u
'
Top
'
,
[])]
self
.
assertEqual
(
expected
,
messages
)
except
ImportError
:
...
...
This diff is collapsed.
Click to expand it.
test
/template
s/gettext.mako
→
test
_htdoc
s/gettext.mako
+
0
−
0
View file @
287fa947
File moved
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment