From anonymous, 1 Month ago, written in Python.
Embed
  1. import pytest
  2.  
  3. @pytest.fixture(params=[11, 12, 13])
  4. def fixt1(request):
  5.     return request.param
  6.  
  7. @pytest.fixture(params=[21, 22, 23])
  8. def fixt2(request):
  9.     return request.param
  10.  
  11. def test_ids_normal(fixt1, fixt2):
  12.     pass
  13.  
  14. def test_ids_reversed(fixt2, fixt1):
  15.     pass
  16.  
  17. # test_param.py::test_ids_normal[11-21] PASSED
  18. # test_param.py::test_ids_normal[11-22] PASSED
  19. # test_param.py::test_ids_normal[11-23] PASSED
  20. # test_param.py::test_ids_normal[12-21] PASSED
  21. # test_param.py::test_ids_normal[12-22] PASSED
  22. # test_param.py::test_ids_normal[12-23] PASSED
  23. # test_param.py::test_ids_normal[13-21] PASSED
  24. # test_param.py::test_ids_normal[13-22] PASSED
  25. # test_param.py::test_ids_normal[13-23] PASSED
  26. # test_param.py::test_ids_reversed[21-11] PASSED
  27. # test_param.py::test_ids_reversed[21-12] PASSED
  28. # test_param.py::test_ids_reversed[21-13] PASSED
  29. # test_param.py::test_ids_reversed[22-11] PASSED
  30. # test_param.py::test_ids_reversed[22-12] PASSED
  31. # test_param.py::test_ids_reversed[22-13] PASSED
  32. # test_param.py::test_ids_reversed[23-11] PASSED
  33. # test_param.py::test_ids_reversed[23-12] PASSED
  34. # test_param.py::test_ids_reversed[23-13] PASSED
  35.