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
requirements.txt
# Add here external Python modules dependencies, one per line. Module names
# should match https://pypi.python.org/pypi names. For the full spec or
# dependency lines, see https://pip.readthedocs.org/en/1.1/requirements.html
attrs
attrs_strict >= 0.0.7
deprecated
hypothesis
iso8601
python-dateutil
typing_extensions

back to top