style: format backend with black
Also drops the session-sliding comment in login_required.
This commit is contained in:
@@ -34,7 +34,12 @@ class ApiTestCase(unittest.TestCase):
|
||||
return (client or self.client).open(path, **kwargs)
|
||||
|
||||
def register(self, username="alice", password="correct horse battery", client=None):
|
||||
response = self.call("POST", "/api/auth/register", {"username": username, "password": password}, client)
|
||||
response = self.call(
|
||||
"POST",
|
||||
"/api/auth/register",
|
||||
{"username": username, "password": password},
|
||||
client,
|
||||
)
|
||||
self.assertEqual(response.status_code, 201, response.get_json())
|
||||
return response
|
||||
|
||||
|
||||
Reference in New Issue
Block a user