From 9523be0552d822be617da77bf0d2ca2f479da572 Mon Sep 17 00:00:00 2001
From: Antoine Pietri <antoine.pietri1@gmail.com>
Date: Tue, 23 Mar 2021 23:42:52 +0000
Subject: [PATCH] Model test data: add Release with no author/date

Some releases don't have authors and date fields, this case should be
checked in the tests.
---
 swh/model/tests/swh_model_data.py | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/swh/model/tests/swh_model_data.py b/swh/model/tests/swh_model_data.py
index c4700cba..cd0ef432 100644
--- a/swh/model/tests/swh_model_data.py
+++ b/swh/model/tests/swh_model_data.py
@@ -152,6 +152,16 @@ RELEASES = [
         message=b"foo",
         synthetic=False,
     ),
+    Release(
+        id=hash_to_bytes("ee4d20e80af850cc0f417d25dc5073792c5010d2"),
+        name=b"this-is-a/tag/1.0",
+        date=None,
+        author=None,
+        target_type=ObjectType.DIRECTORY,
+        target=b"\x05" * 20,
+        message=b"bar",
+        synthetic=False,
+    ),
 ]
 
 ORIGINS = [
-- 
GitLab