2026-10-05 09:41:22 +02:00
|
|
|
# retoor <retoor@molodetz.nl>
|
2026-10-06 02:56:08 +02:00
|
|
|
import re
|
|
|
|
|
|
|
|
|
|
USERNAME_PATTERN = re.compile(r"^[A-Za-z0-9_-]{3,32}$")
|
2026-10-05 09:41:22 +02:00
|
|
|
|
|
|
|
|
|
2026-10-05 11:25:41 +02:00
|
|
|
def test_people_lists_real_accounts_only(anon):
|
|
|
|
|
people = anon.get("/people", headers={"Accept": "application/json"}).json()
|
2026-10-05 09:41:22 +02:00
|
|
|
names = [person["username"] for person in people.get("people", [])]
|
|
|
|
|
assert names[0] == "retoor"
|
2026-10-06 02:56:08 +02:00
|
|
|
assert {"retoor", "lezer"} <= set(names)
|
|
|
|
|
assert all(USERNAME_PATTERN.match(name) for name in names)
|