Skip to content

Replace self.mock_* pairs by self.mocked_* context managers#5157

Open
Flamefire wants to merge 1 commit intoeasybuilders:developfrom
Flamefire:mocked-stdstream
Open

Replace self.mock_* pairs by self.mocked_* context managers#5157
Flamefire wants to merge 1 commit intoeasybuilders:developfrom
Flamefire:mocked-stdstream

Conversation

@Flamefire
Copy link
Copy Markdown
Contributor

Make sure cleanup happens

Followup to #5125 by adding the force_tty parameter to the context managers

  • Diff can be viewed easiest by ignoring space changes (most of the diff is indents)
  • Partially written by Github Copilot, partially RegEx and manual where necessary
  • Kept in one place where the whole test is run with mocked outputs

Should be merged soon as this is prone to merge conflicts

@Flamefire Flamefire force-pushed the mocked-stdstream branch 2 times, most recently from 6bb272a to 359f379 Compare April 2, 2026 13:27
@boegel boegel added the tests label Apr 7, 2026
@boegel boegel added this to the release after 5.3.0 milestone Apr 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants