Add unit tests for HostingServiceAccountResource.
Review Request #5891 — Created May 28, 2014 and submitted
This resource never had any accompanying tests when it was first
written. As we made changes to the resource or any other backing
services, we had no way of verifying that the code worked through the
API. It turns out, it didn't, as POSTing ended up calling save() on the
wrong object.This introduces a basic test suite for this resource.
Unit tests passed.
-
This is a review from Review Bot. Tool: Pyflakes Processed Files: reviewboard/webapi/resources/hosting_service_account.py reviewboard/webapi/tests/mixins.py reviewboard/webapi/tests/urls.py reviewboard/webapi/tests/mimetypes.py reviewboard/webapi/tests/test_hosting_service_account.py Ignored Files:
-
- Change Summary:
-
Removed some code that came along from a copy/paste.
- Commit:
-
58fafae315df4c8fd6714797c5f651477d85321c719efef1222c97804c93e0c24d8fb4fe6bf7af8b
-
This is a review from Review Bot. Tool: PEP8 Style Checker Processed Files: reviewboard/webapi/resources/hosting_service_account.py reviewboard/webapi/tests/mixins.py reviewboard/webapi/tests/urls.py reviewboard/webapi/tests/mimetypes.py reviewboard/webapi/tests/test_hosting_service_account.py Ignored Files:
-
This is a review from Review Bot. Tool: Pyflakes Processed Files: reviewboard/webapi/resources/hosting_service_account.py reviewboard/webapi/tests/mixins.py reviewboard/webapi/tests/urls.py reviewboard/webapi/tests/mimetypes.py reviewboard/webapi/tests/test_hosting_service_account.py Ignored Files:
- Change Summary:
-
Updated to use the new
_normalize_id
from /r/5898/ - Depends On:
-
- Commit:
719efef1222c97804c93e0c24d8fb4fe6bf7af8b4145eb9822db6cb2333d5432393506d0c5aec2b0
-
This is a review from Review Bot. Tool: PEP8 Style Checker Processed Files: reviewboard/webapi/resources/hosting_service_account.py reviewboard/webapi/tests/mixins.py reviewboard/webapi/tests/urls.py reviewboard/webapi/tests/mimetypes.py reviewboard/webapi/tests/test_hosting_service_account.py Ignored Files: