was modifying the dict given as argument.
Details
Details
- Reviewers
vlorentz - Group Reviewers
Reviewers - Commits
- rDMODfca36585a39c: Fix MetadataAuthority.from_dict()
Diff Detail
Diff Detail
- Repository
- rDMOD Data model
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.
Event Timeline
Comment Actions
Build is green
Patch application report for D5215 (id=18684)
Rebasing onto 2185f9308e...
Current branch diff-target is up to date.
Changes applied before test
commit fca36585a39ce15a48204f7362a9c49f164723d2 Author: David Douard <david.douard@sdfa3.org> Date: Mon Mar 8 16:11:22 2021 +0100 Fix MetadataAuthority.from_dict() was modifying the dict given as argument.
See https://jenkins.softwareheritage.org/job/DMOD/job/tests-on-diff/283/ for more details.
swh/model/model.py | ||
---|---|---|
851–855 | for consistency with other from_dict methods: d = d.copy() d["type"] = MetadataAuthorityType(d["type"]) (mypy isn't smart enough to detect we're changing the type so it's fine) |