Skip to content

Broken unit tests exposed by Python 3.12+ #1780

Closed

Description

@vicaya

The 2 test_init_successful_connection tests in backend/app/tests/scripts/test_\*_pre_start.py are basically noops, due to misuses of MagicMock(return_value=True). The 2 unit tests would error out due to unknown attributes (called_once_with) when running bash scripts/test.sh under python 3.12+, which tightened up the MagicMock implementation.

PR would follow.

Activity

  1. added a commit that references this issue on Aug 20, 2025
  2. added a commit that references this issue on Sep 5, 2025
    5321f5b
  3. tiangolo commented on Jan 22, 2026

    @tiangolo
    Member

    Thanks for the PR! 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions