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
acf5e120
Commit
acf5e120
authored
Apr 25, 2016
by
Michal Čihař
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adjust tests for suggestions import
Signed-off-by:
Michal Čihař
<
michal@cihar.com
>
parent
42d17da1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletion
+9
-1
weblate/accounts/tests/test_registration.py
weblate/accounts/tests/test_registration.py
+1
-1
weblate/trans/tests/test_commands.py
weblate/trans/tests/test_commands.py
+8
-0
No files found.
weblate/accounts/tests/test_registration.py
View file @
acf5e120
...
...
@@ -337,7 +337,7 @@ class RegistrationTest(TestCase, RegistrationTestMixin):
)
user
=
User
.
objects
.
get
(
username
=
'weblate'
)
self
.
assertEqual
(
user
.
first_name
,
'Weblate'
)
self
.
assertEqual
(
user
.
email
,
'noreply
@weblat
e.org'
)
self
.
assertEqual
(
user
.
email
,
'noreply
-weblate@exampl
e.org'
)
class
NoCookieRegistrationTest
(
RegistrationTest
):
...
...
weblate/trans/tests/test_commands.py
View file @
acf5e120
...
...
@@ -533,11 +533,19 @@ class SuggesionCommandTest(RepoTestCase):
profile = Profile.objects.get(user__email=user.email)
self.assertEqual(profile.suggested, 1)
def test_default_user(self):
call_command(
'
add_suggestions
', '
test
', '
test
', '
cs
', TEST_PO,
)
profile = Profile.objects.get(user__email='
noreply
@
weblate
.
org
')
self.assertEqual(profile.suggested, 1)
def test_missing_user(self):
self.assertRaises(
CommandError,
call_command,
'
add_suggestions
', '
test
', '
test
', '
cs
', TEST_PO,
author='
foo
@
example
.
org
',
)
def test_missing_project(self):
...
...
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