# 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
