diff --git a/swh/model/hypothesis_strategies.py b/swh/model/hypothesis_strategies.py index e6d830aa111f1c59d8fcba255326b463534b8dd6..163716b9004c3cd9f2c1ea653184babfda75ea0a 100644 --- a/swh/model/hypothesis_strategies.py +++ b/swh/model/hypothesis_strategies.py @@ -51,7 +51,7 @@ def urls(draw): def persons(): - return builds(Person) + return builds(Person, email=optional(bytes), name=optional(bytes)) def timestamps(): @@ -112,6 +112,8 @@ def revision_metadata(): def revisions(): return builds( Revision, + author=persons(), + committer=persons(), date=timestamps_with_timezone(), committer_date=timestamps_with_timezone(), parents=lists(sha1_git()),