Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
rp
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
14
Issues
14
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
La Quadrature du Net
rpteam
rp
Commits
8616f16a
Commit
8616f16a
authored
Apr 18, 2019
by
Okhin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adding rthe few missing tests for UserProfile
parent
4a33912e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
20 deletions
+0
-20
apps/userprofile/tests.py
apps/userprofile/tests.py
+0
-20
No files found.
apps/userprofile/tests.py
deleted
100644 → 0
View file @
4a33912e
from
django.contrib.auth.models
import
User
from
django.template.defaultfilters
import
slugify
from
userprofile.apps
import
UserprofileConfig
from
userprofile.models
import
Profile
from
userprofile.factories
import
ProfileFactory
def
test_init
():
assert
UserprofileConfig
.
name
==
"userprofile"
def
test_profile
():
profile
=
ProfileFactory
()
assert
type
(
profile
.
user
)
==
User
assert
type
(
profile
)
==
Profile
assert
profile
.
slug
==
slugify
(
profile
.
user
.
username
)
assert
str
(
profile
)
==
profile
.
user
.
username
profile
.
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