ruma / homeserver

A Matrix homeserver written in Rust.
https://www.ruma.io/
1.08k stars 41 forks source link

Add test helper for creating a user and returning its access token #66

Closed jimmycuadra closed 8 years ago

jimmycuadra commented 8 years ago

Right now tests of API endpoints manually hit the registration endpoint and extract the access token before testing any endpoints that require an authenticated user. This is useless boilerplate and should be extracted to a simple helper method on the Test type.