mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 21:04:50 -04:00
Write some tests for the email pusher (#4095)
This commit is contained in:
parent
169851b412
commit
0dce9e1379
10 changed files with 182 additions and 13 deletions
|
@ -146,6 +146,13 @@ def DEBUG(target):
|
|||
return target
|
||||
|
||||
|
||||
def INFO(target):
|
||||
"""A decorator to set the .loglevel attribute to logging.INFO.
|
||||
Can apply to either a TestCase or an individual test method."""
|
||||
target.loglevel = logging.INFO
|
||||
return target
|
||||
|
||||
|
||||
class HomeserverTestCase(TestCase):
|
||||
"""
|
||||
A base TestCase that reduces boilerplate for HomeServer-using test cases.
|
||||
|
@ -373,5 +380,5 @@ class HomeserverTestCase(TestCase):
|
|||
self.render(request)
|
||||
self.assertEqual(channel.code, 200)
|
||||
|
||||
access_token = channel.json_body["access_token"].encode('ascii')
|
||||
access_token = channel.json_body["access_token"]
|
||||
return access_token
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue