Fix transaction errors when running review group tests

Review Request #9177 - Created Sept. 7, 2017 and submitted

Barret Rennie
Review Board

When running unit tests, if an IntegrityError error is raised (even if
it is caught), it will break the transaction the unit test runs in.
Therefore, we have to run the potentially exception-raising code in its
own atomic block to avoid this happening.

This also changes a mistaken reference to self.self.local_site_name.

Ran unit tests.

  • 0
  • 3
  • 1
  • 4
Description From Last Updated
Christian Hammond
Barret Rennie
Barret Rennie
Christian Hammond
David Trowbridge
Barret Rennie
Review request changed

Status: Closed (submitted)

Change Summary:

Pushed to release-3.0.x (4d9ac67)