Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
steering
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
AURA
steering
Commits
dc8469ae
Verified
Commit
dc8469ae
authored
3 months ago
by
Ernesto Rico Schmidt
Browse files
Options
Downloads
Patches
Plain Diff
test: add test to create a profile with links
parent
f6d5493e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#8744
passed
3 months ago
Stage: check
Stage: test
Stage: build
Stage: deploy
Stage: release
Pipeline: aura-tests
#8745
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
program/tests/test_profiles.py
+11
-0
11 additions, 0 deletions
program/tests/test_profiles.py
with
11 additions
and
0 deletions
program/tests/test_profiles.py
+
11
−
0
View file @
dc8469ae
...
...
@@ -16,6 +16,7 @@ def profile_data(image=None, link_type: LinkType = None) -> dict[str, str | int]
"
biography
"
:
"
BIOGRAPHY
"
,
"
email
"
:
"
host@aura.radio
"
,
"
name
"
:
"
NAME
"
,
"
owner_ids
"
:
[
1
],
}
if
image
:
...
...
@@ -37,6 +38,16 @@ def test_create_profile(admin_api_client):
assert_data
(
response
,
data
)
def
test_create_profile_with_links
(
admin_api_client
,
link_type
):
data
=
profile_data
(
link_type
=
link_type
)
response
=
admin_api_client
.
post
(
url
(),
data
=
data
,
format
=
"
json
"
)
assert
response
.
status_code
==
201
assert_data
(
response
,
data
)
def
test_create_profile_forbidden_for_common_user
(
common_api_client1
):
data
=
profile_data
()
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment