Ensure Repository.scmtool_id is always set.
Review Request #12334 — Created June 3, 2022 and submitted — Latest diff uploaded
This change updates code which is instantiating repository objects
(almost entirely in unit tests) to ensure that the newscmtool_id
field is always properly set. Many of these were places where the unit
tests were instantiating theRepository
model directly, instead of
usingcreate_repository
. I've fixed those up to use the helper
instead.
Ran unit tests.
reviewboard/reviews/management/commands/fill-database.py |
---|
reviewboard/scmtools/forms.py |
---|
reviewboard/scmtools/models.py |
---|
reviewboard/scmtools/registry.py |
---|
reviewboard/testing/testcase.py |
---|
reviewboard/webapi/resources/repository.py |
---|