pytest-marks

Pytest Marks module
Download

pytest-marks Ranking & Summary

Advertisement

  • Rating:
  • License:
  • GPL
  • Publisher Name:
  • Adam Goucher
  • Publisher web site:
  • https://github.com/adamgoucher/

pytest-marks Tags


pytest-marks Description

Pytest Marks module The ability to set 'marks' on py.test test methods is pretty cool. @pytest.mark.red def some_test_method(self): # some check-y stuffBut if you have a half dozen marks that you want to put on a method, it gets kinda yucky. @pytest.mark.red @pytest.mark.green @pytest.mark.blue @pytest.mark.black @pytest.mark.orange @pytest.mark.pink def some_test_method(self): # some check-y stuffWhat would be nice is if you could apply them all in a single decorator. @pytest.marks('red', 'green', 'blue', 'black', 'orange', 'pink') def some_test_method(self): # some check-y stuffWell, now you can, with the pytest-marks module. Requirements: · Python


pytest-marks Related Software