https://github.com/SoftwareHeritage/swh-model
Revision 731d10d30695921685886364666f8b7f5b2a6c75 authored by Valentin Lorentz on 12 January 2021, 11:17:24 UTC, committed by Valentin Lorentz on 12 January 2021, 11:17:30 UTC
For example, before this commit, you could replace the code of
revision_identifier() with this:

def release_identifier(release):
    return release.get("id", b"")

and all tests would still pass.
1 parent 18fde50
Raw File
Tip revision: 731d10d30695921685886364666f8b7f5b2a6c75 authored by Valentin Lorentz on 12 January 2021, 11:17:24 UTC
test_identifiers: Make sure that {directory,revision,release,snapshot}_identifier() doesn't just return a value from the dict.
Tip revision: 731d10d
CONTRIBUTORS
Daniele Serafini
Ishan Bhanuka
Antoine Cezar
back to top