Commit Graph

238 Commits

Author SHA1 Message Date
Oliver Falk
e1964d0244 Typo + corret img src (in openid) 2018-05-15 13:19:48 +02:00
Oliver Falk
ed59dbd02b Template for adding OpenID 2018-05-15 13:19:21 +02:00
Oliver Falk
e6b6dd3b49 Forms to handle OpenID actions 2018-05-15 13:19:01 +02:00
Oliver Falk
a85c305b8d Views to handle (most) OpenID actions 2018-05-15 13:18:25 +02:00
Oliver Falk
42d44b36b2 Missing import and missing function to assign photo to confirmed OpenID 2018-05-15 13:17:33 +02:00
Oliver Falk
3137eb6485 More on coverage 2018-05-15 11:41:58 +02:00
Oliver Falk
cd65c94e08 Cosmetics and test for gif + invalid (eg. svg in this case) image format 2018-05-15 11:34:38 +02:00
Oliver Falk
21429d594a Add a few words about the class 2018-05-15 11:24:12 +02:00
Oliver Falk
52f138c228 Check message 2018-05-15 11:16:21 +02:00
Oliver Falk
9a537d4034 Slightly change the success message 2018-05-15 11:16:06 +02:00
Oliver Falk
9760959203 Better check on id, instead of return from save, since this isn't returning True/False in all cases 2018-05-15 11:15:35 +02:00
Oliver Falk
f158c5fb9d Typo 2018-05-15 11:04:28 +02:00
Oliver Falk
896e4f5035 Add get request to assign email test, so we test if the context data code is run or not (no actual testing if the code does what is expected... - yet) 2018-05-15 07:48:32 +02:00
Oliver Falk
b8f5d0e133 Test uploading too big data and invalid data 2018-05-14 14:21:22 +02:00
Oliver Falk
37eb7a9083 Return no object if save doesn't return True 2018-05-14 14:20:43 +02:00
Oliver Falk
8a59c7d4c0 Check img data on save 2018-05-14 14:20:07 +02:00
Oliver Falk
b4fb8afe68 Pretty sure this io error cannot happen 2018-05-14 14:09:49 +02:00
Oliver Falk
38aab780b3 Two more catches of runtime error, thanks to unit testing 2018-05-14 14:07:32 +02:00
Oliver Falk
6673e341a5 Enhance test_upload_img, so we can reuse it for uploading multiple images, test uploading more than allowed images 2018-05-14 13:57:48 +02:00
Oliver Falk
f2cb6e913e Remove trailing whitespaces and test delete inexisting photo 2018-05-14 13:47:11 +02:00
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