Add unit tests 31/23231/1
authormaxbr <maxbr@mi.fu-berlin.de>
Mon, 17 Oct 2016 12:56:11 +0000 (14:56 +0200)
committermaxbr <maxbr@mi.fu-berlin.de>
Mon, 17 Oct 2016 12:56:11 +0000 (14:56 +0200)
commitaf9b7ddeb637278a7705964ba98c8e6a2e7307f4
tree503203445b0760bc5cd13c1e2d2347fe7fa069bf
parent7022542bc70c448f71fa56c06d90595e276d7dcc
Add unit tests

JIRA: RELENG-12

This commit increases test statement coverage to 84%. It also fixes the bugs
that emerged while testing.

Change-Id: I696091f1a07f8b7647872c7cb15f4368a4690619
Signed-off-by: maxbr <maxbr@mi.fu-berlin.de>
25 files changed:
tools/pharos-dashboard/src/account/jira_util.py
tools/pharos-dashboard/src/account/models.py
tools/pharos-dashboard/src/account/tests/test_general.py
tools/pharos-dashboard/src/account/views.py
tools/pharos-dashboard/src/api/views.py
tools/pharos-dashboard/src/booking/models.py
tools/pharos-dashboard/src/booking/tests/test_models.py
tools/pharos-dashboard/src/booking/tests/test_views.py
tools/pharos-dashboard/src/booking/views.py
tools/pharos-dashboard/src/dashboard/models.py
tools/pharos-dashboard/src/dashboard/tasks.py
tools/pharos-dashboard/src/dashboard/templatetags/jira_filters.py
tools/pharos-dashboard/src/dashboard/tests/__init__.py [new file with mode: 0644]
tools/pharos-dashboard/src/dashboard/tests/test_models.py [new file with mode: 0644]
tools/pharos-dashboard/src/dashboard/tests/test_views.py [new file with mode: 0644]
tools/pharos-dashboard/src/dashboard/urls.py
tools/pharos-dashboard/src/dashboard/views.py
tools/pharos-dashboard/src/jenkins/adapter.py
tools/pharos-dashboard/src/jenkins/models.py
tools/pharos-dashboard/src/jenkins/tasks.py
tools/pharos-dashboard/src/jenkins/tests.py
tools/pharos-dashboard/src/notification/models.py
tools/pharos-dashboard/src/notification/tasks.py
tools/pharos-dashboard/src/notification/tests.py [new file with mode: 0644]
tools/pharos-dashboard/src/templates/booking/booking_calendar.html