pytest-marks

Sagteware kiekie:
pytest-marks
Sagteware besonderhede:
Weergawe: 0.3
Upload datum: 15 Apr 15
Ontwikkelaar: Adam Goucher
Lisensie: Gratis
Populariteit: 71

Rating: 4.5/5 (Total Votes: 2)

Die vermoë merke te stel op py.test toets metodes is pretty cool.
& Nbsp; & nbsp; & nbsp; @ Pytest.mark.red
& Nbsp; & nbsp; & nbsp; def some_test_method (self):
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; # Sommige check-y dinge
Maar as jy 'n half dosyn punte wat jy wil op 'n metode om te sit, raak dit kinda yucky.
& Nbsp; & nbsp; & nbsp; @ Pytest.mark.red
& Nbsp; & nbsp; & nbsp; @ Pytest.mark.green
& Nbsp; & nbsp; & nbsp; @ Pytest.mark.blue
& Nbsp; & nbsp; & nbsp; @ Pytest.mark.black
& Nbsp; & nbsp; & nbsp; @ Pytest.mark.orange
& Nbsp; & nbsp; & nbsp; @ Pytest.mark.pink
& Nbsp; & nbsp; & nbsp; def some_test_method (self):
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; # Sommige check-y dinge
Wat sal lekker wees, is as jy hulle almal kan aansoek doen in 'n enkele versierder.
& Nbsp; & nbsp; & nbsp; @ Pytest.marks ('n rooi "," groen "," blou "," swart "," oranje "," pienk ")
& Nbsp; & nbsp; & nbsp; def some_test_method (self):
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; # Sommige check-y dinge
Wel, nou kan jy, met die pytest-punte module

Vereistes :.

  • Python

Soortgelyke sagteware

ESC/Java2
ESC/Java2

3 Jun 15

nose-exclude
nose-exclude

20 Feb 15

Expect-lite
Expect-lite

19 Feb 15

Ander sagteware ontwikkelaar Adam Goucher

py.saunter
py.saunter

20 Feb 15

Kommentaar te pytest-marks

Kommentaar nie gevind
Kommentaar te lewer
Draai op die foto!