Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
changeKind: internal
packages:
- "@typespec/http-client-python"
---

Add test coverage for `headModel` scenario in `type/model/visibility` spec.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@ async def test_get_model(client):
assert result == models.VisibilityModel(read_prop="abc")


@pytest.mark.asyncio
async def test_head_model(client):
assert await client.head_model(models.VisibilityModel(), query_prop=123)


@pytest.mark.asyncio
async def test_put_model(client):
await client.put_model(models.VisibilityModel(create_prop=["foo", "bar"], update_prop=[1, 2]))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ def test_get_model(client):
assert result == models.VisibilityModel(read_prop="abc")


def test_head_model(client):
assert client.head_model(models.VisibilityModel(), query_prop=123)


def test_put_model(client):
client.put_model(models.VisibilityModel(create_prop=["foo", "bar"], update_prop=[1, 2]))

Expand Down