• 
      

    Register type equality checks for Q and F objects.

    Review Request #12039 — Created Feb. 4, 2022 and submitted

    Information

    Django Evolution
    release-2.x

    Reviewers

    TestCase now registers the existing assertQEqual() and a new
    assertFEqual() for comparing Q and F objects. This enables
    comparison without having to explicitly call those helper methods. This
    simplifies unit testing and reduces the chances of issues on different
    versions of Django.

    Unit tests pass for all supported versions of Python and Django.

    Summary ID
    Register type equality checks for Q and F objects.
    `TestCase` now registers the existing `assertQEqual()` and a new `assertFEqual()` for comparing `Q` and `F` objects. This enables comparison without having to explicitly call those helper methods. This simplifies unit testing and reduces the chances of issues on different versions of Django.
    b5b2d927b50d9fd98f8fb9e9bd2f4aa5fb2c0cba
    Description From Last Updated

    F821 undefined name 'f1'

    reviewbotreviewbot

    F821 undefined name 'f2'

    reviewbotreviewbot

    F821 undefined name 'f1'

    reviewbotreviewbot

    F821 undefined name 'f2'

    reviewbotreviewbot

    F821 undefined name 'f1'

    reviewbotreviewbot

    F821 undefined name 'f2'

    reviewbotreviewbot
    Checks run (1 failed, 1 succeeded)
    flake8 failed.
    JSHint passed.

    flake8

    chipx86
    david
    1. Ship It!
    2. 
        
    chipx86
    Review request changed
    Status:
    Completed
    Change Summary:
    Pushed to release-2.x (2c54d98)