Commit Graph

468 Commits

Author SHA1 Message Date
Oliver Falk
6ba0b42200 No idea how to test, therefore no cover 2018-05-14 13:40:52 +02:00
Oliver Falk
9a42bda1a9 Tests added: import photo with inexisting email and nothing to import 2018-05-14 13:40:32 +02:00
Oliver Falk
7cf3113ed3 It is ensure by the URLconf that the email_id is there 2018-05-14 13:14:24 +02:00
Oliver Falk
8c7c560c00 Test assign invalid photo id, assign without photo id and with inexisting mail 2018-05-14 13:12:44 +02:00
Oliver Falk
f97cd444b8 See, that's the reason, why unit testing makes absolute sense :-) 2018-05-14 13:11:18 +02:00
Oliver Falk
ae85a991d0 URLconf ensures there is an email id, therefore this code will never be used 2018-05-14 13:00:28 +02:00
Oliver Falk
36ff7dc14e Test upload photo, auto assign on new confirmed address and manual assign 2018-05-14 12:58:07 +02:00
Oliver Falk
a5c27b6055 Test confirmation with (length wise) valid key, that, however, doesn't exist 2018-05-14 12:34:41 +02:00
Oliver Falk
63f40d6416 This code can never happen, since if the email is already confirmed, the verification key does not longer exist and therefore the function will exit, before this code can be reached 2018-05-14 12:34:00 +02:00
Oliver Falk
8643271273 Test removing with invalid auth key and test remove not existing address 2018-05-14 12:28:41 +02:00
Oliver Falk
c425ce7f7c Should be no cover, instead of noqa 2018-05-14 12:22:26 +02:00
Oliver Falk
abadcc85a6 URLconf doesn't allow this to happen, therefore no need to test it 2018-05-14 12:20:36 +02:00
Oliver Falk
87664d0ea8 Correct testing of password set 2018-05-14 12:12:31 +02:00
Oliver Falk
5e0134244f Do we need to explicitly add coverage regex? 2018-05-14 11:24:19 +02:00
Oliver Falk
c513899815 Correct testing of new user, check that we cannot create a user a second time and add test for testing to remove an unconfirmed email that does not exist 2018-05-14 11:23:52 +02:00
Oliver Falk
def7fb42d2 login_required decorator for most functions and remove success* from CreateView, since we anyway add messages on our own 2018-05-14 11:22:27 +02:00
Oliver Falk
c65bea49b7 Require user to be logged in 2018-05-14 11:21:09 +02:00
Oliver Falk
315fe5a9a2 Add link to new user form 2018-05-14 11:20:50 +02:00
Oliver Falk
d7065640e0 /account/ -> /accounts/ 2018-05-14 11:20:28 +02:00
Oliver Falk
cafd282283 Two new test cases: Adding mail address twice and adding address that is already confirmed (by someone) 2018-05-14 09:39:29 +02:00
Oliver Falk
4d541ca9c4 Add test for too many unconfirmed mails 2018-05-14 09:31:26 +02:00
Oliver Falk
a18e9f1642 More documentation 2018-05-11 15:02:40 +02:00
Oliver Falk
e9fddfc734 We have tests in seperate files 2018-05-11 15:00:56 +02:00
Oliver Falk
301e7b0c2b Merge branch 'master' of https://git.linux-kernel.at/oliver/ivatar 2018-05-11 14:44:22 +02:00
Oliver Falk
a54b0c83db Incrase coverage 2018-05-11 14:44:06 +02:00
Oliver Falk
d2a68331fa Add README.me with links to coverage report and code documentation 2018-05-11 14:38:08 +02:00
Oliver Falk
14b147fb69 Unfortunately for python3 we need epel 2018-05-11 14:18:44 +02:00
Oliver Falk
02c22531a1 Correct paths - hopefully 2018-05-11 14:15:47 +02:00
Oliver Falk
ebf1e5061f Do we need EPEL anyway? 2018-05-11 14:14:25 +02:00
Oliver Falk
ddc543af39 Oops, wrong dir 2018-05-11 14:11:24 +02:00
Oliver Falk
71b2ec64b9 Add (automatic) testing 2018-05-11 14:09:23 +02:00
Oliver Falk
2c101c6dbc Ignore html coverage report 2018-05-11 14:08:25 +02:00
Oliver Falk
341fd96fa4 Ignore coverage 2018-05-11 14:07:29 +02:00
Oliver Falk
d557c81a5d Test raw image view and deleting photo view 2018-05-11 14:04:25 +02:00
Oliver Falk
6198f6b2cf Fixes to assigning photo on a new mail address, if there is only one photo, correct super classes of DeletePhotoView and call form_valid with form (of course) 2018-05-11 14:04:06 +02:00
Oliver Falk
8ce764b12d Remove commented out function 2018-05-11 14:02:40 +02:00
Oliver Falk
530c85c54b Dunno why save() does't return anything, but it should be anyway be captured with some try/except elsewhere 2018-05-11 14:02:19 +02:00
Oliver Falk
8d0a49a667 Ignore vim swap files 2018-05-11 14:01:37 +02:00
Oliver Falk
9a02be1bbd Name it consistently raw_image to avoid confusion 2018-05-11 12:26:53 +02:00
Oliver Falk
d0ba1af52a Also check if we really set a photo 2018-05-09 14:24:56 +02:00
Oliver Falk
fd3525c4c8 More test 2018-05-09 14:21:46 +02:00
Oliver Falk
4fb4fc7460 Use dummy/nobody image if no photo as been set yet (else, we raise an exception 2018-05-09 14:21:33 +02:00
Oliver Falk
364ea1f1f5 Correct the upload url 2018-05-09 14:20:59 +02:00
Oliver Falk
3fa6c13144 Make mail confirmation production 2018-05-09 14:20:38 +02:00
Oliver Falk
db91e49869 Comment out this debug print, since it's no longer required, but should be moved to some logger() 2018-05-09 14:20:10 +02:00
Oliver Falk
5d0165c3c7 How did we loose jquery!? 2018-05-09 14:19:35 +02:00
Oliver Falk
1b45b742ca Add maps 2018-05-09 12:15:37 +02:00
Oliver Falk
1960214515 Finish AssignPhotoView 2018-05-09 11:52:10 +02:00
Oliver Falk
5d2cf58af3 Use correct url for the photo 2018-05-09 11:51:38 +02:00
Oliver Falk
f90aa1a0a8 Correct tags/tag order, script tag locations 2018-05-09 11:51:18 +02:00