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

refactor: move owned_image fixture -> test_images

parent 0cd4e85e
No related branches found
No related tags found
No related merge requests found
......@@ -99,11 +99,6 @@ def image(image_file) -> Image:
return ImageFactory(image=image_file)
@pytest.fixture
def owned_image(image_file, common_user1) -> Image:
return ImageFactory(image=image_file, owner=common_user1)
@pytest.fixture
def public_domain_license() -> License:
return LicenseFactory(identifier="pd", name="Public Domain")
......
import pytest
from conftest import assert_data
from program.models import Image
from program.tests.factories import ImageFactory
pytestmark = pytest.mark.django_db
......@@ -18,6 +19,11 @@ def image_data() -> dict[str, str]:
}
@pytest.fixture
def owned_image(image_file, common_user1) -> Image:
return ImageFactory(image=image_file, owner=common_user1)
def test_create_image(image_file, common_api_client1):
data = {"image": image_file}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment