• 
      

    Fix API tests which rely on required_features.

    Review Request #8550 — Created Nov. 21, 2016 and submitted

    Information

    Review Board
    release-3.0.x
    dd59afe...

    Reviewers

    When an API resource depends on a feature, tests for it would pass or fail
    depending on whether that feature was enabled in settings_local.py. Because
    tests are there to test the actual behavior, we want to override the feature
    status to enable it always.

    This change does that, and fixes up the various mixins and top-level tests to
    work correctly. I haven't added any extra tests to specific resources to verify
    the API output when the feature(s) are disabled, because those are tested more
    generically with a dummy resource and feature.

    Disabled the status updates feature in my settings_local.py and ran unit
    tests. Before this change, all the status updates tests failed. After, they
    pass.

    reviewbot
    1. Tool: Pyflakes
      Processed Files:
          reviewboard/webapi/tests/mixins.py
          reviewboard/reviews/tests/test_review_request.py
          reviewboard/webapi/tests/mixins_extra_data.py
          reviewboard/webapi/tests/test_status_update.py
      
      
      
      Tool: PEP8 Style Checker
      Processed Files:
          reviewboard/webapi/tests/mixins.py
          reviewboard/reviews/tests/test_review_request.py
          reviewboard/webapi/tests/mixins_extra_data.py
          reviewboard/webapi/tests/test_status_update.py
      
      
    2. 
        
    brennie
    1. Ship It!
    2. 
        
    david
    Review request changed
    Status:
    Completed
    Change Summary:
    Pushed to release-3.0.x (4735498)