Advertisement
Guest User

Untitled

a guest
Jun 18th, 2019
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. def decorator_example(fn):
  2.  
  3. def create(*args, **kwargs):
  4. # any code here
  5. return fn(*args, **kwargs)
  6.  
  7. return create
  8.  
  9. @pytest.mark.parametrize(
  10. "test_params",
  11. [
  12. pytest.param("own_parameters")
  13. ])
  14. @decorator_example
  15. def test_1(self, fixture1, fixture2, test_params):
  16. pass
  17.  
  18. ValueError: <function create at address> uses no argument 'test_params'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement