Add testing decorators for requiring parameters or attributes.

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

Information

Django Evolution
release-2.x

Reviewers

This introduces @requires_attr and @requires_param, for requiring an
attribute on a class or a parameter to a function, respectively.

These can be used by unit tests to skip tests if some object or function
in the running version of Django doesn't include a particular feature.

These decorators will be used in upcoming changes.

Tested with upcoming changes that use these decorators.

Summary ID
Add testing decorators for requiring parameters or attributes.
This introduces `@requires_attr` and `@requires_param`, for requiring an attribute on a class or a parameter to a function, respectively. These can be used by unit tests to skip tests if some object or function in the running version of Django doesn't include a particular feature. These decorators will be used in upcoming changes.
9319ca6b4746e549a5503f4b1f66c9c7f2fa86e4
david
  1. Ship It!
  2. 
      
chipx86
Review request changed

Status: Closed (submitted)

Change Summary:

Pushed to release-2.x (a668ce5)
Loading...