Skip to content

Commit

Permalink
fix mocked-tests
Browse files Browse the repository at this point in the history
  • Loading branch information
danaelhe committed May 15, 2024
1 parent 634157b commit c622aaf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/mocked/test_client_customizations.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ def test_custom_headers():
client = Client("", headers=custom_headers)

# pylint: disable=protected-access
assert client._client._config.headers_policy.headers == custom_headers
assert client._config.headers_policy.headers == custom_headers


def test_custom_timeout():
timeout = 300
client = Client("", timeout=timeout)

# pylint: disable=protected-access
assert client._client._config.retry_policy.timeout == timeout
assert client._config.retry_policy.timeout == timeout


def test_custom_endpoint():
Expand All @@ -42,7 +42,7 @@ def test_custom_logger():
client = Client("", logger=logger)

# pylint: disable=protected-access
assert client._client._config.http_logging_policy.logger.name == name
assert client._config.http_logging_policy.logger.name == name


@responses.activate
Expand All @@ -59,7 +59,7 @@ def test_custom_user_agent():
full_user_agent_pattern = r"^test azsdk-python-pydo\/.+Python\/.+\(.+\)$"

# pylint: disable=protected-access
got_user_agent = client._client._config.user_agent_policy.user_agent
got_user_agent = client._config.user_agent_policy.user_agent
match = re.match(full_user_agent_pattern, got_user_agent)
assert match is not None

Expand Down

0 comments on commit c622aaf

Please sign in to comment.