Skip to content

Fix test_operation_with_enum after regeneration removed duplicate enum value#3369

Merged
msyyc merged 2 commits intoauto-microsoft-main-2026-03-06-648962from
copilot/sub-pr-3368
Mar 6, 2026
Merged

Fix test_operation_with_enum after regeneration removed duplicate enum value#3369
msyyc merged 2 commits intoauto-microsoft-main-2026-03-06-648962from
copilot/sub-pr-3368

Conversation

Copy link
Contributor

Copilot AI commented Mar 6, 2026

Regeneration from typespec main removed IMPORT_ENUM = "import" from MyEnum — it was a duplicate of IMPORT = "import". Tests still referenced models.MyEnum.IMPORT_ENUM.

  • Removed IMPORT_ENUM assertion from test_reserved_words.py and asynctests/test_reserved_words.py

🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.

… duplicate

Co-authored-by: msyyc <70930885+msyyc@users.noreply.github.com>
Copilot AI changed the title [WIP] Sync from typespec main branch for CI fix Fix test_operation_with_enum after regeneration removed duplicate enum value Mar 6, 2026
Copilot finished work on behalf of msyyc March 6, 2026 06:17
@msyyc msyyc marked this pull request as ready for review March 6, 2026 06:33
@msyyc msyyc merged commit 8a5a149 into auto-microsoft-main-2026-03-06-648962 Mar 6, 2026
1 check passed
@msyyc msyyc deleted the copilot/sub-pr-3368 branch March 6, 2026 06:33
msyyc added a commit that referenced this pull request Mar 6, 2026
* Update dependencies

* Sync shared files from typespec repo (2026-03-06 05:16:47)

* Add changelog

* Update dependencies (2026-03-06 05:17:49)

* Regenerate for typespec-python (2026-03-06 05:23:08)

* Regenerate for autorest.python (2026-03-06 05:37:32)

* Update generic mock API pyproject parse tests

* Fix test_operation_with_enum after regeneration removed duplicate enum value (#3369)

* Initial plan

* Fix test_operation_with_enum: remove reference to removed IMPORT_ENUM duplicate

Co-authored-by: msyyc <70930885+msyyc@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: msyyc <70930885+msyyc@users.noreply.github.com>

---------

Co-authored-by: AutoPrFromHttpClientPython <AutoPrFromHttpClientPython>
Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants