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
5f36fefc
Commit
5f36fefc
authored
Apr 25, 2016
by
Michal Čihař
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Create all test users with valid email
Signed-off-by:
Michal Čihař
<
michal@cihar.com
>
parent
785c6d19
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
6 deletions
+10
-6
weblate/accounts/tests/test_notifications.py
weblate/accounts/tests/test_notifications.py
+3
-2
weblate/trans/tests/test_models.py
weblate/trans/tests/test_models.py
+3
-2
weblate/trans/tests/test_permissions.py
weblate/trans/tests/test_permissions.py
+4
-2
No files found.
weblate/accounts/tests/test_notifications.py
View file @
5f36fefc
...
...
@@ -67,8 +67,9 @@ class NotificationTest(ViewTestCase):
def
second_user
(
self
):
user
=
User
.
objects
.
create_user
(
username
=
'seconduser'
,
password
=
'secondpassword'
'seconduser'
,
'noreply@example.org'
,
'testpassword'
)
return
user
...
...
weblate/trans/tests/test_models.py
View file @
5f36fefc
...
...
@@ -101,8 +101,9 @@ class ProjectTest(RepoTestCase):
"""
# Create user to verify ACL
user
=
User
.
objects
.
create_user
(
username
=
'testuser'
,
password
=
'testpassword'
'testuser'
,
'noreply@example.com'
,
'testpassword'
)
# Create project
...
...
weblate/trans/tests/test_permissions.py
View file @
5f36fefc
...
...
@@ -93,8 +93,10 @@ class GroupACLTest(ModelTestCase):
def
setUp
(
self
):
super
(
GroupACLTest
,
self
).
setUp
()
self
.
user
=
User
.
objects
.
create
(
username
=
"user"
)
self
.
privileged
=
User
.
objects
.
create
(
username
=
"privileged"
)
self
.
user
=
User
.
objects
.
create
(
"user"
,
'test@example.com'
,
'x'
)
self
.
privileged
=
User
.
objects
.
create
(
"privileged"
,
'other@example.com'
,
'x'
)
self
.
group
=
Group
.
objects
.
create
(
name
=
"testgroup"
)
self
.
project
=
self
.
subproject
.
project
self
.
subproject
.
translation_set
.
all
().
delete
()
...
...
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