Changeset View
Changeset View
Standalone View
Standalone View
swh/storage/tests/storage_data.py
Show First 20 Lines • Show All 210 Lines • ▼ Show 20 Lines | revision = { | ||||
"parents": (b"01234567890123456789", b"23434512345123456789"), | "parents": (b"01234567890123456789", b"23434512345123456789"), | ||||
"type": "git", | "type": "git", | ||||
"directory": hash_to_bytes("340133423253310030f531e632a733ff37c3a930"), # dir | "directory": hash_to_bytes("340133423253310030f531e632a733ff37c3a930"), # dir | ||||
"metadata": { | "metadata": { | ||||
"checksums": {"sha1": "tarball-sha1", "sha256": "tarball-sha256",}, | "checksums": {"sha1": "tarball-sha1", "sha256": "tarball-sha256",}, | ||||
"signed-off-by": "some-dude", | "signed-off-by": "some-dude", | ||||
"extra_headers": [ | "extra_headers": [ | ||||
["gpgsig", b"test123"], | ["gpgsig", b"test123"], | ||||
["mergetags", [b"foo\\bar", b"\x22\xaf\x89\x80\x01\x00"]], | ["mergetag", b"foo\\bar"], | ||||
["mergetag", b"\x22\xaf\x89\x80\x01\x00"], | |||||
], | ], | ||||
}, | }, | ||||
"synthetic": True, | "synthetic": True, | ||||
} | } | ||||
revision2 = { | revision2 = { | ||||
"id": b"87659012345678904321", | "id": b"87659012345678904321", | ||||
"message": b"hello again", | "message": b"hello again", | ||||
▲ Show 20 Lines • Show All 286 Lines • ▼ Show 20 Lines | origin_metadata3 = { | ||||
"format": "yaml", | "format": "yaml", | ||||
"metadata": b"foo: bar", | "metadata": b"foo: bar", | ||||
} | } | ||||
person = { | person = { | ||||
"name": b"John Doe", | "name": b"John Doe", | ||||
"email": b"john.doe@institute.org", | "email": b"john.doe@institute.org", | ||||
"fullname": b"John Doe <john.doe@institute.org>", | "fullname": b"John Doe <john.doe@institute.org>", | ||||
} | } | ||||
ardumont: There might be some simplification in another part of the tests which expose something similar… | |||||
Done Inline ActionsI'll have a look, thx. douardda: I'll have a look, thx. | |||||
Not Done Inline Actionsardumont: Found it [1]
[1] https://forge.softwareheritage.org/source/swh… |
There might be some simplification in another part of the tests which expose something similar (pytest wise iirc).
Not that i ask you to do it now heh ;)