Files
azure-gpt-cursor/tests/test_functional.py
T
gabrii 8a87d0033b Squash everything befor release.
Some past commits might have contained Cursor's IP or accidentally
commited API keys. Before making the repository public, all the history
has been squashed into a single commit with.
2025-09-14 17:38:55 +02:00

27 lines
707 B
Python

"""Functional tests using WebTest.
See: http://webtest.readthedocs.org/
"""
class TestConfig:
"""Config."""
def test_config_is_set(self, testapp):
"""Ensure required config values are set."""
app = testapp.app
assert app.config["AZURE_BASE_URL"] != "change_me"
assert app.config["AZURE_API_KEY"] != "change_me"
class TestModels:
"""Models."""
def test_models_endpoint_returns_200(self, testapp):
"""Ensure /models endpoint returns HTTP 200."""
testapp.get("/models", status=401)
def test_health_endpoint_returns_200(self, testapp):
"""Ensure /health endpoint returns HTTP 200."""
testapp.get("/health", status=200)