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
b862672b
Verified
Commit
b862672b
authored
1 month ago
by
Ernesto Rico Schmidt
Browse files
Options
Downloads
Patches
Plain Diff
test: update usage of owner -> created_by
parent
f37f8d9a
No related branches found
No related tags found
No related merge requests found
Pipeline
#9116
passed
1 month ago
Stage: check
Stage: test
Stage: build
Stage: deploy
Stage: release
Pipeline: aura-tests
#9117
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
program/tests/test_images.py
+4
-4
4 additions, 4 deletions
program/tests/test_images.py
with
4 additions
and
4 deletions
program/tests/test_images.py
+
4
−
4
View file @
b862672b
...
...
@@ -21,12 +21,12 @@ def image_data() -> dict[str, str]:
@pytest.fixture
def
owned_image
(
image_file
,
common_user1
)
->
Image
:
return
ImageFactory
(
image
=
image_file
,
owner
=
common_user1
)
return
ImageFactory
(
image
=
image_file
,
created_by
=
common_user1
)
@pytest.fixture
def
owned_licensed_image
(
image_file
,
common_user1
,
public_domain_license
)
->
Image
:
return
ImageFactory
(
image
=
image_file
,
owner
=
common_user1
,
licensing
=
LicensingFactory
())
return
ImageFactory
(
image
=
image_file
,
created_by
=
common_user1
,
licensing
=
LicensingFactory
())
def
test_create_image
(
image_file
,
common_api_client1
):
...
...
@@ -72,7 +72,7 @@ def test_delete_image_not_found_for_different_user(owned_image, common_api_clien
def
test_list_images
(
image_file
,
common_user1
,
common_api_client1
):
IMAGES
=
3
ImageFactory
.
create_batch
(
size
=
IMAGES
,
image
=
image_file
,
owner
=
common_user1
)
ImageFactory
.
create_batch
(
size
=
IMAGES
,
image
=
image_file
,
created_by
=
common_user1
)
response
=
common_api_client1
.
get
(
url
())
...
...
@@ -82,7 +82,7 @@ def test_list_images(image_file, common_user1, common_api_client1):
def
test_list_images_for_different_user
(
image_file
,
common_user1
,
common_api_client2
):
IMAGES
=
3
ImageFactory
.
create_batch
(
size
=
IMAGES
,
image
=
image_file
,
owner
=
common_user1
)
ImageFactory
.
create_batch
(
size
=
IMAGES
,
image
=
image_file
,
created_by
=
common_user1
)
response
=
common_api_client2
.
get
(
url
())
...
...
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