Add unit tests for Repository.objects.accessible_ids.

Review Request #11603 — Created May 11, 2021 and submitted — Latest diff uploaded

Information

Review Board
release-3.0.x

Reviewers

This function is currently a light-weight wrapper around
Repository.objects.accessible(), which already has a full suite of
tests. However, there are plans for some future work here, and it's a
good time to ensure that we have some reliable tests in case anything
were to break.

This change copies over the accessible() tests, changing them to
check IDs against a list of IDs instead.

Unit tests pass.

Diff Revision 1 (Latest)

Commits

First Last Summary ID Author
Add unit tests for Repository.objects.accessible_ids.
This function is currently a light-weight wrapper around `Repository.objects.accessible()`, which already has a full suite of tests. However, there are plans for some future work here, and it's a good time to ensure that we have some reliable tests in case anything were to break. This change copies over the `accessible()` tests, changing them to check IDs against a list of IDs instead.
16090a6c763ae4ce8c90375dacaa75c6378eb07f Christian Hammond
reviewboard/scmtools/tests/test_repository_manager.py
Loading...