Fix a couple Django 1.11-related issues in `rbext test`

Review Request #10870 — Created Jan. 31, 2020 and submitted

Information

Review Board
release-4.0.x
32a960f...

Reviewers

The rbext tool had a couple of problems when trying to run an
extension's test suite, now that we've updated to the newer version of
Django. The first of these was that apps were not getting initialized
properly before attempting to discover tests; this has been fixed by
adding a call to reviewboard.initialize(). The second was an error
attempting to use Review Board's collectstatic. Extension test suites
shouldn't need this, so I've turned off the collect step from rbext.

Was able to use rbext test -m ... for a couple different extensions.

Description From Last Updated

E402 module level import not at top of file

reviewbotreviewbot
Checks run (1 failed, 1 succeeded)
flake8 failed.
JSHint passed.

flake8

chipx86
  1. Ship It!
  2. 
      
david
Review request changed
Status:
Completed
Change Summary:
Pushed to release-4.0.x (2e2fe29)