Page MenuHomeSoftware Heritage

D3341.diff
No OneTemporary

D3341.diff

diff --git a/swh/model/hypothesis_strategies.py b/swh/model/hypothesis_strategies.py
--- a/swh/model/hypothesis_strategies.py
+++ b/swh/model/hypothesis_strategies.py
@@ -177,7 +177,7 @@
dict,
visit=integers(1, 1000),
origin=urls(),
- status=sampled_from(["ongoing", "full", "partial"]),
+ status=sampled_from(["created", "ongoing", "full", "partial"]),
date=aware_datetimes(),
snapshot=optional(sha1_git()),
metadata=optional(metadata_dicts()),
diff --git a/swh/model/model.py b/swh/model/model.py
--- a/swh/model/model.py
+++ b/swh/model/model.py
@@ -263,7 +263,8 @@
date = attr.ib(type=datetime.datetime, validator=type_validator())
status = attr.ib(
- type=str, validator=attr.validators.in_(["ongoing", "full", "partial"])
+ type=str,
+ validator=attr.validators.in_(["created", "ongoing", "full", "partial"]),
)
snapshot = attr.ib(type=Optional[Sha1Git], validator=type_validator())
metadata = attr.ib(

File Metadata

Mime Type
text/plain
Expires
Wed, Dec 18, 2:47 AM (2 d, 4 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3216282

Event Timeline