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
b561348f
Commit
b561348f
authored
Oct 21, 2014
by
Michal Čihař
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use commit_message from a resource
Issue #507 Signed-off-by:
Michal Čihař
<
michal@cihar.com
>
parent
aa888c68
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
13 deletions
+9
-13
weblate/trans/models/translation.py
weblate/trans/models/translation.py
+1
-1
weblate/trans/tests/test_models.py
weblate/trans/tests/test_models.py
+8
-12
No files found.
weblate/trans/models/translation.py
View file @
b561348f
...
...
@@ -771,7 +771,7 @@ class Translation(models.Model, URLMixin, PercentMixin, LoggerMixin):
'''
Formats commit message based on project configuration.
'''
msg
=
self
.
subproject
.
project
.
commit_message
%
{
msg
=
self
.
subproject
.
commit_message
%
{
'language'
:
self
.
language_code
,
'language_name'
:
self
.
language
.
name
,
'subproject'
:
self
.
subproject
.
name
,
...
...
weblate/trans/tests/test_models.py
View file @
b561348f
...
...
@@ -247,18 +247,6 @@ class ProjectTest(RepoTestCase):
appsettings
.
GIT_ROOT
=
backup
def
test_validation
(
self
):
project
=
self
.
create_project
()
# Correct project
project
.
full_clean
()
# Invalid commit message
project
.
commit_message
=
'%(foo)s'
self
.
assertRaisesMessage
(
ValidationError
,
'Bad format string'
,
project
.
full_clean
)
def
test_acl
(
self
):
"""
Test for ACL handling.
...
...
@@ -496,6 +484,14 @@ class SubProjectTest(RepoTestCase):
# Correct project
project
.
full_clean
()
# Invalid commit message
project
.
commit_message
=
'%(foo)s'
self
.
assertRaisesMessage
(
ValidationError
,
'Bad format string'
,
project
.
full_clean
)
# Invalid mask
project
.
filemask
=
'foo/x.po'
self
.
assertRaisesMessage
(
...
...
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