diff options
author | maxbr <maxbr@mi.fu-berlin.de> | 2016-10-17 14:56:11 +0200 |
---|---|---|
committer | maxbr <maxbr@mi.fu-berlin.de> | 2016-10-17 14:56:11 +0200 |
commit | 61f00f4110b1d33827e3bd19ffef34f10be8273a (patch) | |
tree | 2c24ca2a8414eb1f40d5363e03d3c2b21e1fec32 /pharos-dashboard/src/account/models.py | |
parent | adafb09cb1f221259970d16886ea0e03169899a5 (diff) |
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>
Diffstat (limited to 'pharos-dashboard/src/account/models.py')
-rw-r--r-- | pharos-dashboard/src/account/models.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/pharos-dashboard/src/account/models.py b/pharos-dashboard/src/account/models.py index d87ee18..c2e9902 100644 --- a/pharos-dashboard/src/account/models.py +++ b/pharos-dashboard/src/account/models.py @@ -8,12 +8,9 @@ ############################################################################## -from django.db import models - from django.contrib.auth.models import User -from rest_framework.authtoken.models import Token +from django.db import models -from dashboard.models import Resource def upload_to(object, filename): return object.user.username + '/' + filename |