• 
      

    Fix ImageMimetypeTests to call super().setUp()

    Review Request #14616 — Created Sept. 15, 2025 and submitted

    Information

    Review Board
    release-7.1.x

    Reviewers

    The ImageMimetypeTests class has a setUp() method, but it didn't
    call the parent class one. I discovered this while running tests via
    pytest-xdist, and hit failures in this class because it was the first
    set of tests running on that thread, and initialize() had not been
    called before we were trying to access the review UI registry.

    Ran unit tests with xdist and a number of threads that exposed this bug,
    saw everything succeed.

    Summary ID
    Fix ImageMimetypeTests to call super().setUp()
    The `ImageMimetypeTests` class has a `setUp()` method, but it didn't call the parent class one. I discovered this while running tests via pytest-xdist, and hit failures in this class because it was the first set of tests running on that thread, and `initialize()` had not been called before we were trying to access the review UI registry. Testing Done: Ran unit tests with xdist and a number of threads that exposed this bug, saw everything succeed.
    tlstkxrszustmlzrwsymnwyqnrnntmql
    maubin
    1. Ship It!
    2. 
        
    david
    Review request changed
    Status:
    Completed
    Change Summary:
    Pushed to release-7.1.x (860f580)