Fix the webapi tests on newer versions of Django.

Review Request #9417 - Created Dec. 2, 2017 and submitted

Christian Hammond
Djblets
release-1.0.x
766f35c...
djblets

Some recent unit tests for API token signals introduced a second
WebAPIToken model registered within the djblets.webapi.tests app.
While this didn't outright break on Django 1.6, it did on newer
versions.

These new tests now import the old model, allowing for a single
registered model. This works when running the entire Djblets test suite
or the individual test modules.

It also fixes a typo in the name of the class for the signal tests.

Ran webapi unit tests on Django 1.6, 1.9, 1.10, and 1.11 without
problems.

David Trowbridge
  1. Ship It!
  2. 
      
Christian Hammond
Review request changed

Status: Closed (submitted)

Change Summary:

Pushed to release-1.0.x (f628759)
Loading...