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 |
|
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 |
|