summary refs log tree commit diff
path: root/tests/appservice/test_appservice.py (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Remove redundant "coding: utf-8" lines (#9786)Jonathan de Jong2021-04-141-1/+0
| | | | | | | Part of #9744 Removes all redundant `# -*- coding: utf-8 -*-` lines from files, as python 3 automatically reads source code as utf-8 now. `Signed-off-by: Jonathan de Jong <jonathan@automatia.nl>`
* Use mock from the stdlib. (#9772)Patrick Cloke2021-04-091-2/+1
|
* Add ability for access tokens to belong to one user but grant access to ↵Erik Johnston2020-10-291-0/+1
| | | | | | | | | | another user. (#8616) We do it this way round so that only the "owner" can delete the access token (i.e. `/logout/all` by the "owner" also deletes that token, but `/logout/all` by the "target user" doesn't). A future PR will add an API for creating such a token. When the target user and authenticated entity are different the `Processed request` log line will be logged with a: `{@admin:server as @bob:server} ...`. I'm not convinced by that format (especially since it adds spaces in there, making it harder to use `cut -d ' '` to chop off the start of log lines). Suggestions welcome.
* Convert appservice to async. (#7973)Patrick Cloke2020-07-301-28/+61
|
* Run black.black2018-08-101-60/+26
|
* run isortAmber Brown2018-07-091-4/+5
|
* Add extra space before inline commentLuke Barnard2017-11-161-1/+1
|
* Fix testsLuke Barnard2017-11-161-0/+1
|
* Compile the regex's used in ASesErik Johnston2017-03-281-1/+3
|
* Make notify_interested_services fasterErik Johnston2016-08-171-65/+44
|
* Fix flake8 warnings for testsMark Haines2016-02-191-1/+1
|
* Require ID and as_token be unique for ASsDaniel Wagner-Hall2016-01-141-0/+1
| | | | | Defaults ID to as_token if not specified. This will change when IDs are fully supported.
* copyrightsMatthew Hodgson2016-01-071-1/+1
|
* Make the appservice use 'users_in_room' rather than get_room_members since ↵Mark Haines2015-05-221-12/+3
| | | | it is cached
* Fix thinko whereby events *for the AS specifically* were not passed on.Kegan Dougal2015-03-311-0/+13
| | | | | This was caused by not explicitly checking the service.sender field. This has now been fixed and a regression test has been added.
* Add more unit tests for exclusive namespaces.Kegan Dougal2015-02-271-1/+49
|
* Update unit tests to use new format.Kegan Dougal2015-02-271-16/+23
|
* Notify ASes for events sent by other users in a room which an AS user is a ↵Kegan Dougal2015-02-111-0/+25
| | | | part of.
* Fix bug in store defer. Add more unit tests.Kegan Dougal2015-02-041-0/+87
|
* Begin to add unit tests for appservice glue and regex testing.Kegan Dougal2015-02-041-0/+58