File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments