Skip to content
Snippets Groups Projects
Verified Commit b862672b authored by Ernesto Rico Schmidt's avatar Ernesto Rico Schmidt
Browse files

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
Pipeline: aura-tests

#9117

    ......@@ -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())
    ......
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Please register or to comment