Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
converse.js
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
converse.js
Commits
1ce7bac0
Commit
1ce7bac0
authored
Nov 23, 2015
by
Michal Čihař
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add basic test for parsing monolingual XLIFF files
Issue #816 Signed-off-by:
Michal Čihař
<
michal@cihar.com
>
parent
a79c4baf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
weblate/trans/tests/test_models.py
weblate/trans/tests/test_models.py
+11
-0
No files found.
weblate/trans/tests/test_models.py
View file @
1ce7bac0
...
...
@@ -280,6 +280,13 @@ class RepoTestCase(TestCase):
'xliff/*/%s.xlf'
%
name
,
)
def
create_xliff_mono
(
self
):
return
self
.
_create_subproject
(
'xliff'
,
'xliff-mono/*.xlf'
,
'xliff-mono/en.xlf'
,
)
def
create_link
(
self
):
parent
=
self
.
create_iphone
()
return
SubProject
.
objects
.
create
(
...
...
@@ -540,6 +547,10 @@ class SubProjectTest(RepoTestCase):
project
=
self
.
create_xliff
()
self
.
verify_subproject
(
project
,
1
,
'cs'
,
4
)
def
test_create_xliff_mono
(
self
):
project
=
self
.
create_xliff_mono
()
self
.
verify_subproject
(
project
,
2
,
'cs'
,
4
)
def
test_create_xliff_dph
(
self
):
project
=
self
.
create_xliff
(
'DPH'
)
self
.
verify_subproject
(
project
,
1
,
'en'
,
9
,
'DPH'
)
...
...
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