Skip to content

Commit

Permalink
fix: fix rest unit test (#1074)
Browse files Browse the repository at this point in the history
In some cases `hostname:port` format was expected.
  • Loading branch information
vam-google authored Nov 5, 2021
1 parent a110e1d commit 3b2918e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1293,7 +1293,7 @@ def test_{{ method.name|snake_case }}_rest_flattened(transport: str = 'rest'):
assert len(req.mock_calls) == 1
_, args, _ = req.mock_calls[0]
{% with uri = method.http_options[0].uri %}
assert path_template.validate("https://{{ service.host }}{{ uri }}", args[1])
assert path_template.validate("https://%s{{ uri }}" % client.transport._host, args[1])
{% endwith %}
{# TODO(kbandes) - reverse-transcode request args to check all request fields #}

Expand Down

0 comments on commit 3b2918e

Please sign in to comment.