summaryrefslogtreecommitdiff
path: root/sw/auth.py
AgeCommit message (Collapse)AuthorLines
2021-07-31Display inbox/outbox contents correctlyTom Harley-9/+37
As per previous commit, the contents of inboxes and outboxes were not being properly displayed, which was difficult to test because of there being very few items in the test DB. This commit includes moving functions such as prepared_output into a new file sw/util.py; including them in sw/users.py made little sense and caused a circular dependency with sw/auth.py. A stub function for item info retreival has also been created, in new file sw/items.py.
2021-07-11Add more inbox/outbox testsHEADmasterTom Harley-12/+4
Still not even total coverage! Need to: - write more tests for outbox manipulation - look into and implement receiving content from other servers (+ write tests) off the top of my head.
2021-07-09Add basic inbox/outbox functionalityTom Harley-2/+17
Lots of added TODOs, and very little test coverage for the new functions. Next step is to get 100% coverage of what we have so far.
2021-07-07Add testing for authorisation decoratorsTom Harley-5/+8
Test addition commits always look big lmao As mentioned in the previous commit, this commit adds a check for the correct user when accessing someone's /inbox.
2021-07-06Begin work on adding user interactionTom Harley-5/+17
This commit adds support for getting information about a user, as well as accessing their inbox (not actually getting a CollectionPage yet, though). Currently the inbox does not require the right user to be logged in to access their personal inbox; this should be fixed.
2021-07-03Initial commitTom Harley-0/+119