Skip to content

Update test_pub_configurable#3662

Merged
LKuemmel merged 1 commit into
openWB:masterfrom
AlexanderHa98:fix_test_pub_configurable
Jul 14, 2026
Merged

Update test_pub_configurable#3662
LKuemmel merged 1 commit into
openWB:masterfrom
AlexanderHa98:fix_test_pub_configurable

Conversation

@AlexanderHa98

Copy link
Copy Markdown
Contributor

Fügt Mock-Data hinzu und der Test gibt jetzt die konkrete Exception zurück

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Diese PR aktualisiert den Test für pub_configurable, indem Test-Setup (Mock-Data) ergänzt wird und bei einem unerwarteten logging.Logger.exception zusätzliche Debug-Infos (Exception/Traceback-Ursprung) in der Assertion-Nachricht landen.

Changes:

  • Ergänzt ein pytest-Fixture, das control.data.data_init(...) initialisiert, um Import-/Runtime-Abhängigkeiten auf Mock-Data zu erfüllen.
  • Ersetzt das reine Call-Count-Assertion-Pattern durch ein side_effect, das bei auftretenden log.exception(...)-Aufrufen Exception-Details sammelt und im Fehlerfall ausgibt.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@LKuemmel
LKuemmel marked this pull request as ready for review July 14, 2026 12:39
@LKuemmel
LKuemmel merged commit b4cc6c2 into openWB:master Jul 14, 2026
1 check passed
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.

3 participants