Load admin site for Unit Tests, add form tests
Review Request #10339 — Created Nov. 30, 2018 and submitted — Latest diff uploaded
The admin site models and URLs were unable to be accessed during Unit Tests.
This meant that if a test attempted to access an admin model page, the
page would respond with a 404 error.
django.contrib.admin.autodiscover()during initial test setup
loads all the admin UI models, so tests have access to admin URLS.
DefaultReviewer form tests, WebhookTargetAdmin form tests, and OauthAdmin
form tests were all added as well, to check that forms function as
./tests/runtests.pyreturns no errors. The form tests added