Split the monolithic test directory into three tiers (unit, api, e2e) with a path-mirroring directory structure. Added corresponding Makefile targets (test-unit, test-api, test-e2e) and updated all documentation references (CLAUDE.md, README.md, testing-cicd.html, testing-framework.html, testing-make.html) to reflect the new layout and naming conventions.
13 lines
392 B
Python
13 lines
392 B
Python
# retoor <retoor@molodetz.nl>
|
|
|
|
import requests
|
|
from devplacepy.avatar import avatar_url, generate_avatar_svg
|
|
from tests.conftest import BASE_URL
|
|
|
|
|
|
def test_avatar_endpoint_serves_svg(app_server):
|
|
r = requests.get(f"{BASE_URL}/avatar/multiavatar/alice_test?size=64")
|
|
assert r.status_code == 200
|
|
assert "svg" in r.headers.get("content-type", "").lower()
|
|
assert "<svg" in r.text
|