mirror of
https://github.com/x1xhlol/system-prompts-and-models-of-ai-tools.git
synced 2026-06-18 23:39:34 +00:00
22 lines
628 B
Python
22 lines
628 B
Python
"""Marketing hub JSON + static paths."""
|
|
from fastapi.testclient import TestClient
|
|
|
|
from app.main import app
|
|
|
|
client = TestClient(app)
|
|
|
|
|
|
def test_marketing_hub_json():
|
|
r = client.get("/api/v1/marketing/hub")
|
|
assert r.status_code == 200
|
|
data = r.json()
|
|
assert "paths" in data
|
|
assert data["paths"]["marketing_zip"].endswith(".zip")
|
|
assert "/dealix-marketing/" in data["paths"]["marketing_index"]
|
|
|
|
|
|
def test_dealix_marketing_index_when_enabled():
|
|
r = client.get("/dealix-marketing/index.html")
|
|
assert r.status_code == 200
|
|
assert b"dealix-marketing-bundle" in r.content or b"Dealix" in r.content
|