dify/api/tests/test_containers_integration_tests/test_web_challenges.py
Joey Yakimowich-Payne 6038fc25f5
Add multi-site Caddy helpers and document usage
- add startup/shutdown scripts that render a Caddyfile from JSON config and run health checks

- add Python utilities and a sample sites.json for declarative multi-site configuration

- document the workflow and ignore generated Caddy state artifacts

- normalize double-quote style across challenge workflow controllers, nodes, and tests
2025-10-15 22:03:56 -06:00

12 lines
377 B
Python

from __future__ import annotations
from flask.testing import FlaskClient
class TestWebChallenges:
def test_list_and_detail(self, test_client_with_containers: FlaskClient):
# list
resp = test_client_with_containers.get("/api/web/challenges")
assert resp.status_code == 200
data = resp.get_json()
assert data["result"] == "success"