We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a096c40 commit fa39b65Copy full SHA for fa39b65
sdk/core/azure-core/tests/test_pipeline.py
@@ -204,6 +204,12 @@ def test_format_url_no_base_url(self):
204
formatted = client.format_url("https://google.com/subpath/{foo}", foo="bar")
205
assert formatted == "https://google.com/subpath/bar"
206
207
+ def test_format_incorrect_endpoint(self):
208
+ # https://github.com/Azure/azure-sdk-for-python/pull/12106
209
+ client = PipelineClientBase('{Endpoint}/text/analytics/v3.0')
210
+ formatted = client.format_url("foo/bar")
211
+ # We don't care about the value, we care it doesn't fail
212
+ assert formatted is not None
213
214
class TestClientRequest(unittest.TestCase):
215
def test_request_json(self):
0 commit comments