forked from retoor/devplacepy
Add personal notes, DeepSearch history, backup offload, and gateway auth throttling
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:
@@ -280,6 +280,29 @@ def test_profile_renders_heatmap_and_streak(app_server):
|
||||
assert "1 day streak" in html
|
||||
|
||||
|
||||
def test_search_users_includes_avatar_seed_for_custom_seed(app_server):
|
||||
s, name = _signup_media()
|
||||
r = s.post(
|
||||
f"{BASE_URL}/profile/{name}/regenerate-avatar",
|
||||
headers=JSON_media,
|
||||
)
|
||||
assert r.status_code == 200, r.text[:300]
|
||||
seed = r.json()["data"]["avatar_seed"]
|
||||
assert seed
|
||||
|
||||
found = s.get(f"{BASE_URL}/profile/search", params={"q": name}).json()["results"]
|
||||
match = next(x for x in found if x["username"] == name)
|
||||
assert match["avatar_seed"] == seed
|
||||
|
||||
|
||||
def test_search_users_avatar_seed_null_without_custom_seed(app_server):
|
||||
s, name = _signup_media()
|
||||
|
||||
found = s.get(f"{BASE_URL}/profile/search", params={"q": name}).json()["results"]
|
||||
match = next(x for x in found if x["username"] == name)
|
||||
assert match.get("avatar_seed") is None
|
||||
|
||||
|
||||
def test_profile_badges_json_has_non_null_names(app_server):
|
||||
import time
|
||||
from devplacepy.database import get_table, refresh_snapshot
|
||||
|
||||
Reference in New Issue
Block a user