Skip to content

Commit 3f67403

Browse files
Fix test
1 parent c3a54ac commit 3f67403

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/test_api_endpoint_config.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,16 +44,19 @@ def test_api_endpoint_env_override(self):
4444
os.environ['AI_API_ENDPOINT'] = original_env
4545

4646
def test_to_url_models_github(self):
47+
"""Test to_url method for models.github.ai endpoint."""
4748
endpoint = AI_API_ENDPOINT_ENUM.AI_API_MODELS_GITHUB
4849
assert endpoint.to_url() == 'https://models.github.ai/inference'
4950

5051
def test_to_url_githubcopilot(self):
52+
"""Test to_url method for GitHub Copilot endpoint."""
5153
endpoint = AI_API_ENDPOINT_ENUM.AI_API_GITHUBCOPILOT
5254
assert endpoint.to_url() == 'https://api.githubcopilot.com'
5355

5456
def test_unsupported_endpoint(self):
55-
original_env = os.environ.pop('AI_API_ENDPOINT', None)
57+
"""Test that unsupported API endpoint raises ValueError."""
5658
try:
59+
original_env = os.environ.pop('AI_API_ENDPOINT', None)
5760
api_endpoint = 'https://unsupported.example.com'
5861
os.environ['AI_API_ENDPOINT'] = api_endpoint
5962

0 commit comments

Comments
 (0)