Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable pytest support for django waffle #453

Open
rievva-aleksandra opened this issue Aug 2, 2022 · 3 comments
Open

Enable pytest support for django waffle #453

rievva-aleksandra opened this issue Aug 2, 2022 · 3 comments

Comments

@rievva-aleksandra
Copy link

It would be very useful if testing utils such as override_switch and override_flag were available for pytest style classes as class decorators. Is this feature somewhere on the road map?

@clintonb
Copy link
Collaborator

clintonb commented Aug 2, 2022

@clintonb clintonb closed this as not planned Won't fix, can't repro, duplicate, stale Aug 2, 2022
@rievva-aleksandra
Copy link
Author

right now if you try to write this like this

@override_switch("some_switch", active=True)
class TestFoo:
    ...

it fails with TypeError: Can only decorate subclasses of unittest.TestCase. on the latest 2.6.0 version, sorry for not making it clear right away.

@clintonb
Copy link
Collaborator

clintonb commented Aug 2, 2022

You’re welcome to submit a pull request adding a pytest decorator.

@clintonb clintonb reopened this Aug 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants