Fix avatar unit tests on django 1.8+

Review Request #8809 - Created March 10, 2017 and submitted

Barret Rennie
Djblets
release-0.10.x
8871730...
djblets

ConfigForms require User.get_profile to exist, but Django has
removed this method in modern versions, causing some test failures.
This patch adds a testcase decorator to re-implement the missing
method when it is not present.

Ran unit tests on Django 1.8 and 1.6: they passed!

  • 0
  • 0
  • 2
  • 0
  • 2
Description From Last Updated
Review Bot
Christian Hammond
Barret Rennie
Review Bot
Christian Hammond
Barret Rennie
Review request changed

Status: Closed (submitted)

Change Summary:

Pushed to release-0.10.x (4e7397c)
Christian Hammond
  1. On Django 1.8, this is actually raising NotImplementedError in the tests that were failing before.

  2. 
      
Loading...