kopia lustrzana https://gitlab.com/jaywink/federation
Fix tests
rodzic
d981cb7811
commit
c469f74e29
|
@ -34,9 +34,10 @@ def matrix_config_func() -> Dict:
|
||||||
return {
|
return {
|
||||||
"homeserver_base_url": "https://matrix.domain.tld",
|
"homeserver_base_url": "https://matrix.domain.tld",
|
||||||
"homeserver_domain_with_port": "matrix.domain.tld:443",
|
"homeserver_domain_with_port": "matrix.domain.tld:443",
|
||||||
|
"homeserver_name": "domain.tld",
|
||||||
"appservice": {
|
"appservice": {
|
||||||
"id": "uniqueid",
|
"id": "uniqueid",
|
||||||
"sender_localpart": "_myawesomeapp",
|
"shortcode": "myawesomeapp",
|
||||||
"token": "secret_token",
|
"token": "secret_token",
|
||||||
},
|
},
|
||||||
"identity_server_base_url": "https://id.domain.tld",
|
"identity_server_base_url": "https://id.domain.tld",
|
||||||
|
|
|
@ -27,7 +27,7 @@ class TestGetBaseAttributes:
|
||||||
"created_at", "name", "email", "gender", "raw_content", "location", "public",
|
"created_at", "name", "email", "gender", "raw_content", "location", "public",
|
||||||
"nsfw", "public_key", "image_urls", "tag_list", "signature", "url", "atom_url",
|
"nsfw", "public_key", "image_urls", "tag_list", "signature", "url", "atom_url",
|
||||||
"base_url", "id", "actor_id", "handle", "handle", "guid", "activity", "activity_id", "username",
|
"base_url", "id", "actor_id", "handle", "handle", "guid", "activity", "activity_id", "username",
|
||||||
"inboxes",
|
"inboxes", "mxid",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -15,12 +15,20 @@ def test_get_registration():
|
||||||
"exclusive": False,
|
"exclusive": False,
|
||||||
"regex": "@.*",
|
"regex": "@.*",
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"exclusive": True,
|
||||||
|
"regex": "@_myawesomeapp_.*",
|
||||||
|
},
|
||||||
],
|
],
|
||||||
"aliases": [
|
"aliases": [
|
||||||
{
|
{
|
||||||
"exclusive": False,
|
"exclusive": False,
|
||||||
"regex": "#.*",
|
"regex": "#.*",
|
||||||
}
|
},
|
||||||
|
{
|
||||||
|
"exclusive": True,
|
||||||
|
"regex": "#_myawesomeapp_.*",
|
||||||
|
},
|
||||||
],
|
],
|
||||||
"rooms": [],
|
"rooms": [],
|
||||||
}
|
}
|
||||||
|
|
Ładowanie…
Reference in New Issue