Skip to content

Commit fa39b65

Browse files
committed
Tests
1 parent a096c40 commit fa39b65

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

sdk/core/azure-core/tests/test_pipeline.py

+6
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,12 @@ def test_format_url_no_base_url(self):
204204
formatted = client.format_url("https://google.com/subpath/{foo}", foo="bar")
205205
assert formatted == "https://google.com/subpath/bar"
206206

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
207213

208214
class TestClientRequest(unittest.TestCase):
209215
def test_request_json(self):

0 commit comments

Comments
 (0)