Add personal notes, DeepSearch history, backup offload, and gateway auth throttling
DevPlace CI / test (push) Failing after 28m20s
DevPlace CI / test (push) Failing after 28m20s
Also streamline the top navigation: drop the Tools dropdown, make Quizzes and Battles icon-only entries, and remove the Workspace, Containers and Editor entry points from the project detail page.
This commit is contained in:
@@ -37,6 +37,39 @@ def _upload_uploads(s, name="a.png"):
|
||||
return r.json()["uid"]
|
||||
|
||||
|
||||
JSON_search = {"Accept": "application/json"}
|
||||
|
||||
|
||||
def test_search_recipients_includes_avatar_seed_for_custom_seed(app_server):
|
||||
alice = _session_uploads()
|
||||
bob, bob_name = _user_uploads("bob")
|
||||
|
||||
r = bob.post(
|
||||
f"{BASE_URL}/profile/{bob_name}/regenerate-avatar",
|
||||
headers=JSON_search,
|
||||
)
|
||||
assert r.status_code == 200, r.text[:300]
|
||||
seed = r.json()["data"]["avatar_seed"]
|
||||
assert seed
|
||||
|
||||
found = alice.get(f"{BASE_URL}/messages/search", params={"q": bob_name}).json()[
|
||||
"results"
|
||||
]
|
||||
match = next(x for x in found if x["username"] == bob_name)
|
||||
assert match["avatar_seed"] == seed
|
||||
|
||||
|
||||
def test_search_recipients_avatar_seed_null_without_custom_seed(app_server):
|
||||
alice = _session_uploads()
|
||||
bob, bob_name = _user_uploads("bob")
|
||||
|
||||
found = alice.get(f"{BASE_URL}/messages/search", params={"q": bob_name}).json()[
|
||||
"results"
|
||||
]
|
||||
match = next(x for x in found if x["username"] == bob_name)
|
||||
assert match.get("avatar_seed") is None
|
||||
|
||||
|
||||
def test_message_links_multiple_attachments(app_server):
|
||||
alice = _session_uploads()
|
||||
bob, bob_name = _user_uploads("bob")
|
||||
|
||||
Reference in New Issue
Block a user