From bc2da3d58fb97d15aeb147762689d2888339b7f0 Mon Sep 17 00:00:00 2001 From: ChenxiJiang333 Date: Tue, 13 Jan 2026 14:55:40 +0800 Subject: [PATCH 1/3] update testcases --- .../asynctests/test_special_words_async.py | 18 ++++++++++++++++++ .../azure/mock_api_tests/test_special_words.py | 17 +++++++++++++++++ 2 files changed, 35 insertions(+) diff --git a/packages/typespec-python/test/azure/mock_api_tests/asynctests/test_special_words_async.py b/packages/typespec-python/test/azure/mock_api_tests/asynctests/test_special_words_async.py index 52cc99289ee..bc7018ecb19 100644 --- a/packages/typespec-python/test/azure/mock_api_tests/asynctests/test_special_words_async.py +++ b/packages/typespec-python/test/azure/mock_api_tests/asynctests/test_special_words_async.py @@ -40,3 +40,21 @@ async def test_model(client: SpecialWordsClient, special_words): @pytest.mark.asyncio async def test_model_properties(client: SpecialWordsClient): await client.model_properties.same_as_model(models.SameAsModel(same_as_model="ok")) + + +@pytest.mark.asyncio +async def test_model_properties_dict_methods(client: SpecialWordsClient): + await client.model_properties.dict_methods( + body=models.DictMethods( + keys_property="ok", + items_property="ok", + values_property="ok", + popitem_property="ok", + clear_property="ok", + update_property="ok", + setdefault_property="ok", + pop_property="ok", + get_property="ok", + copy_property="ok", + ) + ) diff --git a/packages/typespec-python/test/azure/mock_api_tests/test_special_words.py b/packages/typespec-python/test/azure/mock_api_tests/test_special_words.py index 2b4dcb74914..7672f9cd5d5 100644 --- a/packages/typespec-python/test/azure/mock_api_tests/test_special_words.py +++ b/packages/typespec-python/test/azure/mock_api_tests/test_special_words.py @@ -35,3 +35,20 @@ def test_model(client: SpecialWordsClient, special_words): def test_model_properties(client: SpecialWordsClient): client.model_properties.same_as_model(models.SameAsModel(same_as_model="ok")) + + +def test_model_properties_dict_methods(client: SpecialWordsClient): + client.model_properties.dict_methods( + body=models.DictMethods( + keys_property="ok", + items_property="ok", + values_property="ok", + popitem_property="ok", + clear_property="ok", + update_property="ok", + setdefault_property="ok", + pop_property="ok", + get_property="ok", + copy_property="ok", + ) + ) From 3e097de18c1cc5f92e662161d4b49e0cfe953feb Mon Sep 17 00:00:00 2001 From: ChenxiJiang333 Date: Tue, 13 Jan 2026 15:06:20 +0800 Subject: [PATCH 2/3] changelog --- .chronus/changes/main-2026-0-7-16-58-10.md | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 .chronus/changes/main-2026-0-7-16-58-10.md diff --git a/.chronus/changes/main-2026-0-7-16-58-10.md b/.chronus/changes/main-2026-0-7-16-58-10.md new file mode 100644 index 00000000000..8b5b1d0ef53 --- /dev/null +++ b/.chronus/changes/main-2026-0-7-16-58-10.md @@ -0,0 +1,7 @@ +--- +changeKind: internal +packages: + - "@azure-tools/typespec-python" +--- + +Add testcases for several spector scenarios \ No newline at end of file From 7c76530ee67c418a3857ebb06037576beb2fe389 Mon Sep 17 00:00:00 2001 From: ChenxiJiang333 <119990644+ChenxiJiang333@users.noreply.github.com> Date: Tue, 13 Jan 2026 15:23:27 +0800 Subject: [PATCH 3/3] Rename main-2026-0-7-16-58-10.md to main-2026-0-7-16-58-11.md --- .../{main-2026-0-7-16-58-10.md => main-2026-0-7-16-58-11.md} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename .chronus/changes/{main-2026-0-7-16-58-10.md => main-2026-0-7-16-58-11.md} (63%) diff --git a/.chronus/changes/main-2026-0-7-16-58-10.md b/.chronus/changes/main-2026-0-7-16-58-11.md similarity index 63% rename from .chronus/changes/main-2026-0-7-16-58-10.md rename to .chronus/changes/main-2026-0-7-16-58-11.md index 8b5b1d0ef53..85bbf4b8774 100644 --- a/.chronus/changes/main-2026-0-7-16-58-10.md +++ b/.chronus/changes/main-2026-0-7-16-58-11.md @@ -4,4 +4,4 @@ packages: - "@azure-tools/typespec-python" --- -Add testcases for several spector scenarios \ No newline at end of file +Add testcases for several spector scenarios