Signed-off-by: Pierre-Yves Chibon pingou@pingoured.fr
+1. Though then I guess we might need to look into why the flask.g.fas_user objects from the test environment suffice but in a "real" instance they don't.
flask.g.fas_user
we might need to look into why the flask.g.fas_user objects from the test environment suffice but in a "real" instance they don't.
+1 looking at it right now
Does this affect people using non-fas auth?
Found it, the FakeUser object in the tests has an .id attribute so things work while they don't with a real fas_user object. Addressing this
FakeUser
.id
fas_user
Yes
2 new commits added
Adjust tests' name to fit their function name so git grep works
Don't add an id to the FakeUser objects by default
Code looks good, provided the tests pass.
:thumbsup:
1 new commit added
Pass along the user object not the fas_user and fix unit-tests accordingly
Run black on the sources
Pull-Request has been merged by pingou
Signed-off-by: Pierre-Yves Chibon pingou@pingoured.fr