Commit Graph

259 Commits

Author SHA1 Message Date
Oliver Falk
088be58723 PEP8 2018-05-23 10:36:14 +02:00
Oliver Falk
cc511c98a1 PEP8 2018-05-23 10:35:51 +02:00
Oliver Falk
d855abac62 Match definition of overriden method, use request instead of self.request, since we now have it anywhere within the same context 2018-05-22 14:59:33 +02:00
Oliver Falk
7f4b82abe3 Fetch image via hash for OpenID and email 2018-05-22 14:41:42 +02:00
Oliver Falk
4646c38f8a Assign Photo to OpenId 2018-05-22 14:41:18 +02:00
Oliver Falk
7e58f77294 Digest for ConfirmedEmail and ConfirmedOpenId 2018-05-22 14:40:04 +02:00
Oliver Falk
66693f71c5 Cleanup (pep8, flakes) 2018-05-17 09:22:22 +02:00
Oliver Falk
da7f608772 Cleanup (pep8, flakes) 2018-05-17 09:21:56 +02:00
Oliver Falk
8893579db6 Cleanup (pep8, flakes) 2018-05-17 09:21:45 +02:00
Oliver Falk
b90bd1582e Cleanup (pep8, flakes) 2018-05-17 09:21:26 +02:00
Oliver Falk
a616ff08fa Cleanup (pep8, flakes) 2018-05-17 09:21:02 +02:00
Oliver Falk
26c504044f Cleanup (pep8, flakes) 2018-05-17 09:20:40 +02:00
Oliver Falk
e25fa07b00 Cleanup 2018-05-17 09:20:18 +02:00
Oliver Falk
e165976c79 Ignore pyre dirs 2018-05-16 13:18:54 +02:00
Oliver Falk
516b31a69c Home page 2018-05-16 13:18:24 +02:00
Oliver Falk
129308741d Stringify message, for easier coverage fixing, move print to same line as the if statement 2018-05-16 13:17:49 +02:00
Oliver Falk
f86ca1cb86 Small update to test signing 2018-05-15 19:25:46 +02:00
Oliver Falk
a286fb6fc3 Coverage now correctly configured in CI 2018-05-15 16:17:52 +02:00
Oliver Falk
bdb27455df Ignore virtualenv 2018-05-15 16:12:13 +02:00
Oliver Falk
6c02d0ae48 Check if a photo is there, else we cannot call raw_image 2018-05-15 16:11:51 +02:00
Oliver Falk
652350e033 Wire up OpenID actions 2018-05-15 13:20:02 +02:00
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