Skip to content

Commit

Permalink
Regenerate for autorest.python (2025-02-12 08:49:23)
Browse files Browse the repository at this point in the history
  • Loading branch information
AutoPrFromHttpClientPython authored and AutoPrFromHttpClientPython committed Feb 12, 2025
1 parent 99ba999 commit 1111c83
Show file tree
Hide file tree
Showing 8 changed files with 31 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,17 @@ class TestMultiClient(object):

def test_head(self, credential, authentication_policy):

with HeadClient(credential, base_url="http://localhost:3000", authentication_policy=authentication_policy) as client:
with HeadClient(
credential, base_url="http://localhost:3000", authentication_policy=authentication_policy
) as client:
assert client.http_success.head200()
assert client.http_success.head204()
assert not client.http_success.head404()

def test_paging(self, credential, authentication_policy):
with PagingClient(credential, base_url="http://localhost:3000", authentication_policy=authentication_policy) as client:
with PagingClient(
credential, base_url="http://localhost:3000", authentication_policy=authentication_policy
) as client:
pages = client.paging.get_no_item_name_pages()
items = [i for i in pages]
assert len(items) == 1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ async def test_azure_url(credential, authentication_policy):

sub_id = str(uuid4())

async with MicrosoftAzureTestUrl(credential, sub_id, authentication_policy=authentication_policy, endpoint="http://localhost:3000") as client:
async with MicrosoftAzureTestUrl(
credential, sub_id, authentication_policy=authentication_policy, endpoint="http://localhost:3000"
) as client:

group = await client.group.get_sample_resource_group("testgroup101")
assert group["name"] == "testgroup101"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@
@pytest.mark.asyncio
async def test_head(credential, authentication_policy):

async with AutoRestHeadTestService(credential, authentication_policy=authentication_policy, endpoint="http://localhost:3000") as client:
async with AutoRestHeadTestService(
credential, authentication_policy=authentication_policy, endpoint="http://localhost:3000"
) as client:

assert await client.http_success.head200()
assert await client.http_success.head204()
Expand All @@ -44,7 +46,9 @@ async def test_head(credential, authentication_policy):
@pytest.mark.asyncio
async def test_head_exception(credential, authentication_policy):

async with AutoRestHeadExceptionTestService(credential, authentication_policy=authentication_policy, endpoint="http://localhost:3000") as client:
async with AutoRestHeadExceptionTestService(
credential, authentication_policy=authentication_policy, endpoint="http://localhost:3000"
) as client:

await client.head_exception.head200()
await client.head_exception.head204()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,7 @@
async def client(credential, authentication_policy):
valid_subscription = "1234-5678-9012-3456"
async with AutoRestAzureSpecialParametersTestClient(
credential,
valid_subscription,
authentication_policy=authentication_policy,
endpoint="http://localhost:3000"
credential, valid_subscription, authentication_policy=authentication_policy, endpoint="http://localhost:3000"
) as client:
await yield_(client)

Expand All @@ -55,7 +52,7 @@ async def client_no_request_id(credential, authentication_policy):
valid_subscription,
auto_request_id=False,
authentication_policy=authentication_policy,
endpoint="http://localhost:3000"
endpoint="http://localhost:3000",
) as client:
await yield_(client)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ def test_azure_url(credential, authentication_policy):

sub_id = str(uuid4())

with MicrosoftAzureTestUrl(credential, sub_id, authentication_policy=authentication_policy, endpoint="http://localhost:3000") as client:
with MicrosoftAzureTestUrl(
credential, sub_id, authentication_policy=authentication_policy, endpoint="http://localhost:3000"
) as client:

group = client.group.get_sample_resource_group("testgroup101")
assert group["name"] == "testgroup101"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@

@pytest.fixture
def client(credential, authentication_policy):
with AutoRestPagingTestService(credential, authentication_policy=authentication_policy, endpoint="http://localhost:3000") as client:
with AutoRestPagingTestService(
credential, authentication_policy=authentication_policy, endpoint="http://localhost:3000"
) as client:
yield client


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@

def test_head(credential, authentication_policy):

with AutoRestHeadTestService(credential, authentication_policy=authentication_policy, endpoint="http://localhost:3000") as client:
with AutoRestHeadTestService(
credential, authentication_policy=authentication_policy, endpoint="http://localhost:3000"
) as client:

assert client.http_success.head200()
assert client.http_success.head204()
Expand All @@ -42,7 +44,9 @@ def test_head(credential, authentication_policy):

def test_head_exception(credential, authentication_policy):

with AutoRestHeadExceptionTestService(credential, authentication_policy=authentication_policy, endpoint="http://localhost:3000") as client:
with AutoRestHeadExceptionTestService(
credential, authentication_policy=authentication_policy, endpoint="http://localhost:3000"
) as client:

client.head_exception.head200()
client.head_exception.head204()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,7 @@
def client(credential, authentication_policy):
valid_subscription = "1234-5678-9012-3456"
with AutoRestAzureSpecialParametersTestClient(
credential,
valid_subscription,
authentication_policy=authentication_policy,
endpoint="http://localhost:3000"
credential, valid_subscription, authentication_policy=authentication_policy, endpoint="http://localhost:3000"
) as client:
yield client

Expand All @@ -50,7 +47,7 @@ def client_no_request_id(credential, authentication_policy):
valid_subscription,
auto_request_id=False,
authentication_policy=authentication_policy,
endpoint="http://localhost:3000"
endpoint="http://localhost:3000",
) as client:
yield client

Expand Down

0 comments on commit 1111c83

Please sign in to comment.