Fix API token unit tests.

Review Request #6213 — Created Aug. 8, 2014 and submitted

Information

Review Board
master
987d3b9...

Reviewers

Several API tests were failing because the proposed token policies were missing
a "resources" field. I've added this to the tests, and refactored the common
data out so that if we want to make any changes to the policy string, it's only
in one place.

Ran unit tests.

reviewbot
  1. Tool: PEP8 Style Checker
    Processed Files:
        reviewboard/webapi/tests/test_api_token.py
    
    
    
    Tool: Pyflakes
    Processed Files:
        reviewboard/webapi/tests/test_api_token.py
    
    
  2. 
      
chipx86
  1. Ship It!

  2. 
      
david
Review request changed

Status: Closed (submitted)

Change Summary:

Pushed to master (a9fc169)
Loading...