Which of the following decorator is used to assign user defined setup and tear down functions to a test function, while using nose?

3.8k Views Asked by At

I am not able to choose the right answer for this please help

  1. @use

  2. @with_setup

  3. @use_setup

  4. @setup

Any help is highly appreciated ! !

Plss help

1

There are 1 best solutions below

0
Deepak Narang On

@with_setup

@with_setup(setup_func, teardown_func) def test(): "test ..."