Modernize the ReviewGroupUserResource tests

Review Request #8457 - Created Oct. 12, 2016 and submitted

Barret Rennie
Review Board
release-2.5.x
8458
d310b4f...
reviewboard

The tests for the ReviewGroupUserResource were not using the
webapi_test_template decorator and were therefore hardcoding the
resource URL into each test docstring. All such instances have been
updated to use the decorator.

In addition, the test for getting DELETE links on a local site has been
udpated to use get_local_site and test fixtures.

Ran unit tests. Saw they all contained the correct URLs.

Review Bot
  1. Tool: Pyflakes
    Processed Files:
        reviewboard/webapi/tests/test_review_group_user.py
    
    
    
    Tool: PEP8 Style Checker
    Processed Files:
        reviewboard/webapi/tests/test_review_group_user.py
    
    
  2. 
      
Barret Rennie
Christian Hammond
  1. Ship It!
    1. Im going to wait to land this because I want to update it once r/8458 is landed and merged so I don't have to do the same thing for the new test.

  2. 
      
Barret Rennie
Review request changed

Status: Closed (submitted)

Change Summary:

Pushed to release-2.5.x (105db37)
Loading...