I have a base class like
class BaseTest:
@setup_test(param='foo')
def test_something():
do stuff
I now want to override the param to the decorator
class NewTest:
@setup_test(param='different value')
def test_something():
super().test_something()
The trouble is when I call super().test_something()
it will call BaseTest.test_something
wrapped with @setup_test(param='foo')
which does some bootstrapping that will overwrite what was done in @setup_test(param='different value')
.
I need to directly call the undecorated BaseTest.test_something