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
f30d1019
Commit
f30d1019
authored
Jan 18, 2013
by
Weblate
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
0256a4b7
5d8b6db7
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
0 deletions
+13
-0
.gitignore
.gitignore
+1
-0
weblate/trans/tests/test_models.py
weblate/trans/tests/test_models.py
+12
-0
No files found.
.gitignore
View file @
f30d1019
...
...
@@ -7,3 +7,4 @@ weblate-*.tar.*
/translate
/*.db
/weblate/settings.py
/weblate/test-repos/
weblate/trans/tests/test_models.py
View file @
f30d1019
...
...
@@ -129,3 +129,15 @@ class SubProjectTest(RepoTestCase):
)
self
.
assertTrue
(
second
.
is_repo_link
())
self
.
assertEqual
(
second
.
translation_set
.
count
(),
2
)
class
TranslationTest
(
RepoTestCase
):
'''
Translation testing.
'''
def
test_basic
(
self
):
project
=
self
.
create_subproject
()
translation
=
project
.
translation_set
.
get
(
language_code
=
'cs'
)
self
.
assertEqual
(
translation
.
translated
,
0
)
self
.
assertEqual
(
translation
.
total
,
4
)
self
.
assertEqual
(
translation
.
fuzzy
,
0
)
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