and add a test to keep them correct.
Details
- Reviewers
ardumont - Group Reviewers
Reviewers - Commits
- rDMOD446bd2b167c3: Fix swh_model_data hardcoded id values
Diff Detail
- Repository
- rDMOD Data model
- Branch
- master
- Lint
Lint Skipped - Unit
Unit Tests Skipped - Build Status
Buildable 20982 Build 32563: Phabricator diff pipeline on jenkins Jenkins console · Jenkins Build 32562: arc lint + arc unit
Event Timeline
Build is green
Patch application report for D5589 (id=19981)
Rebasing onto 1f6b3b9d5b...
Current branch diff-target is up to date.
Changes applied before test
commit 446bd2b167c340899c4d81b1e071173648f0f4e2 Author: David Douard <david.douard@sdfa3.org> Date: Fri Apr 23 17:24:08 2021 +0200 Fix swh_model_data hardcoded id values and add a test to keep them correct.
See https://jenkins.softwareheritage.org/job/DMOD/job/tests-on-diff/320/ for more details.
swh/model/tests/swh_model_data.py | ||
---|---|---|
123 | what about removing those. (just a thought) |
swh/model/tests/swh_model_data.py | ||
---|---|---|
123 | ok, fair points. (I did not see the other diff as it's still in draft, thx for the heads up). |
swh/model/tests/test_swh_model_data.py | ||
---|---|---|
25 | for some reason, it seems to not run according to the report thus that suggestion ^ |
swh/model/tests/test_swh_model_data.py | ||
---|---|---|
25 | don't think this is needed, this assertion is made in test_swh_model_data above. What makes you think this is needed? |
swh/model/tests/test_swh_model_data.py | ||
---|---|---|
25 | because the coverage report is saying that it does not run (it's orange and not blue on the right here, in the forge ui diff view) So if it does not run, modifying like so should raise (as far as i could tell without running anything ;) Otherwise, it's simply the coverage report thingy which is buggy. |
swh/model/tests/test_swh_model_data.py | ||
---|---|---|
25 | Don't know why it is reported as not covered, makes no sense to me... Note that it also reports the whole body of the previous test function (test_swh_model_data) as not covered, so... |
well the print statements I've added at some point in this test were definitely printed out, so somebody is doing something...