From 61d6c7aefddf4498c8d12a946457cd37986d2bc0 Mon Sep 17 00:00:00 2001
From: Ernesto Rico Schmidt <ernesto@helsinki.at>
Date: Tue, 29 Oct 2024 12:02:44 -0400
Subject: [PATCH] test: add fixture for license

---
 conftest.py | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/conftest.py b/conftest.py
index a640db78..199f5471 100644
--- a/conftest.py
+++ b/conftest.py
@@ -102,7 +102,7 @@ def owned_image(image_file, common_user1) -> Image:
 
 @pytest.fixture
 def public_domain_license() -> License:
-    return LicenseFactory()
+    return LicenseFactory(identifier="pd", name="Public Domain")
 
 
 @pytest.fixture
@@ -301,3 +301,8 @@ def topic() -> Topic:
 @pytest.fixture
 def owner() -> User:
     return OwnerFactory()
+
+
+@pytest.fixture
+def license_() -> License:
+    return LicenseFactory()
-- 
GitLab