Backport test id decorator for forwards/backwards compat

Bug #1538269 reported by Ryan Lane
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bandit
Incomplete
Wishlist
Tim Kelsey

Bug Description

Unreleased version of bandit requires a decorator that specifies a test number. If it isn't added, then bandit won't run a test; however, that decorator isn't available in older versions of bandit, so when the new version of bandit is released all old plugins will immediately be incompatible.

If the decorator is backported, plugins can add the decorators and be forwards/backwards compatible.

Revision history for this message
Ian Cordasco (icordasc) wrote :

Alternatively 3rd party plugins (however few exist) can just do

    try:
        from bandit.core.test_properties import test_id
    except ImportError:
        def test_id(banditid):
            def identity(func):
                return func
            return identity

To get the same effect without declaring an actual test id on your test function.

Tim Kelsey (tim-kelsey)
Changed in bandit:
assignee: nobody → Tim Kelsey (tim-kelsey)
Revision history for this message
Stanislaw Pitucha (stanislaw-pitucha) wrote :

Just revisiting all issues.
Which version was this needed for? Do we still care 6 months after?

Changed in bandit:
status: New → Incomplete
importance: Undecided → Wishlist
Revision history for this message
Ryan Lane (rlane32) wrote : Re: [Bug 1538269] Re: Backport test id decorator for forwards/backwards compat

Probably not now, no.

On Aug 16, 2016 1:16 AM, "Stanislaw Pitucha" <email address hidden>
wrote:

> Just revisiting all issues.
> Which version was this needed for? Do we still care 6 months after?
>
> ** Changed in: bandit
> Status: New => Incomplete
>
> ** Changed in: bandit
> Importance: Undecided => Wishlist
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1538269
>
> Title:
> Backport test id decorator for forwards/backwards compat
>
> Status in Bandit:
> Incomplete
>
> Bug description:
> Unreleased version of bandit requires a decorator that specifies a
> test number. If it isn't added, then bandit won't run a test; however,
> that decorator isn't available in older versions of bandit, so when
> the new version of bandit is released all old plugins will immediately
> be incompatible.
>
> If the decorator is backported, plugins can add the decorators and be
> forwards/backwards compatible.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/bandit/+bug/1538269/+subscriptions
>

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.