Repository navigation
Using Pascal Case for Context Managers - #2266
Merged
ni-jfitzger merged 1 commit intoDec 2, 2026
Merged
Conversation
elebel-emerson
requested review from
marcoskirsch,
ni-jfitzger and
vnktshr21
as code owners
December 2, 2026 20:11
|
Azure Pipelines: There may be pipelines that require an authorized user to comment /azp run to run. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #2266 +/- ##
=======================================
Coverage 88.13% 88.13%
=======================================
Files 88 88
Lines 22863 22866 +3
=======================================
+ Hits 20150 20154 +4
+ Misses 2713 2712 -1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
ni-jfitzger
approved these changes
Dec 2, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This contribution adheres to CONTRIBUTING.md.
I've updated CHANGELOG.md if applicable.I've added tests applicable for this pull request
What does this Pull Request accomplish?
Fixes the generated class name for context managers whose
taskhas more than one word. The previous'_' + task.title()produced invalid Python for names with spaces (for exampleclass _Time Measurement).This adds
phrase_to_pascalcasetobuild/helper/helper.py, next to the other coding convention helpers, and uses it inget_context_managersinbuild/helper/codegen_helper.py. A task oftime measurementnow produces_TimeMeasurement. This PR doesn't change any generated files.What testing has been done?
test_get_context_managers_multipleinbuild/unit_tests/test_codegen_helper.pyto use the multi-word taskwaveform generationand expect_WaveformGeneration. This test fails with the oldtitle()logic, which would produce_Waveform Generation.test_codegen_helper.pypass in thepy312-codegentox environment.