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
24dd2ebb
Commit
24dd2ebb
authored
Feb 01, 2014
by
Michal Čihař
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Test importing Django user dump
parent
7ad3f009
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
0 deletions
+27
-0
weblate/accounts/tests.py
weblate/accounts/tests.py
+5
-0
weblate/trans/tests/data/users-django.json
weblate/trans/tests/data/users-django.json
+22
-0
No files found.
weblate/accounts/tests.py
View file @
24dd2ebb
...
...
@@ -222,6 +222,11 @@ class CommandTest(TestCase):
user2
=
User
.
objects
.
get
(
username
=
'weblate'
)
self
.
assertEqual
(
user
.
first_name
,
user2
.
first_name
)
def
test_importdjangousers
(
self
):
# First import
call_command
(
'importusers'
,
get_test_file
(
'users-django.json'
))
self
.
assertEquals
(
User
.
objects
.
count
(),
2
)
class
ViewTest
(
TestCase
):
'''
...
...
weblate/trans/tests/data/users-django.json
0 → 100644
View file @
24dd2ebb
[
{
"pk"
:
2
,
"model"
:
"auth.user"
,
"fields"
:
{
"username"
:
"weblate"
,
"first_name"
:
"First"
,
"last_name"
:
"Last"
,
"is_active"
:
false
,
"is_superuser"
:
false
,
"is_staff"
:
false
,
"last_login"
:
"2013-10-09T17:28:56.639"
,
"groups"
:
[
3
],
"user_permissions"
:
[],
"password"
:
"!"
,
"email"
:
"noreply@weblate.org"
,
"date_joined"
:
"2013-10-09T17:28:56.639"
}
}
]
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