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.
Differential D4839
test_identifiers: Make sure that {directory,revision,release,snapshot}_identifier() doesn't just return a value from the dict. vlorentz on Jan 12 2021, 12:18 PM. Authored by Tags None Subscribers None
Details
For example, before this commit, you could replace the code of def release_identifier(release): return release.get("id", b"") and all tests would still pass.
Diff Detail
Event TimelineComment Actions Build is green Patch application report for D4839 (id=17136)Rebasing onto 18fde50472... Current branch diff-target is up to date. Changes applied before testcommit 731d10d30695921685886364666f8b7f5b2a6c75 Author: Valentin Lorentz <vlorentz@softwareheritage.org> Date: Tue Jan 12 12:17:24 2021 +0100 test_identifiers: Make sure that {directory,revision,release,snapshot}_identifier() doesn't just return a value from the dict. 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. See https://jenkins.softwareheritage.org/job/DMOD/job/tests-on-diff/195/ for more details. |