• 
      

    Add decorators for skipping tests when run without indicated Django support.

    Review Request #11248 — Created Oct. 27, 2020 and submitted

    Information

    Django Evolution
    master

    Reviewers

    Many unit tests can only be run if the version of Django includes
    certain support. For instance, migration-related unit tests require
    support for migrations in Django. Previously, every such unit test had
    to have its own checks and handle raising a SkipTest, but this was
    getting tedious to maintain, and isn't very future-proof.

    This change adds some new decorators for these tests, and standardizes
    the SkipTest message. This simplifies much of the code and improves
    maintainability going forward.

    All unit tests pass across all versions of Django.

    Verified that the skip message output was correct in older versions.

    Summary ID
    Add decorators for skipping tests when run without indicated Django support.
    Many unit tests can only be run if the version of Django includes certain support. For instance, migration-related unit tests require support for migrations in Django. Previously, every such unit test had to have its own checks and handle raising a `SkipTest`, but this was getting tedious to maintain, and isn't very future-proof. This change adds some new decorators for these tests, and standardizes the `SkipTest` message. This simplifies much of the code and improves maintainability going forward.
    5fa329103c73a4fde606b3ac7ac2f874a9c6b996
    david
    1. Nice cleanup!

    2. 
        
    chipx86
    Review request changed
    Status:
    Completed
    Change Summary:
    Pushed to master (0daf8e4)