UNKNOWN
Project description
Pytest-Marks
============
The ability to set 'marks' on py.test test methods is pretty cool.
@pytest.mark.red
def some_test_method(self):
# some check-y stuff
But 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 stuff
What 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 stuff
Well, now you can.
============
The ability to set 'marks' on py.test test methods is pretty cool.
@pytest.mark.red
def some_test_method(self):
# some check-y stuff
But 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 stuff
What 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 stuff
Well, now you can.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
pytest_marks-0.1-py2.7.egg
(3.2 kB
view details)
File details
Details for the file pytest_marks-0.1-py2.7.egg
.
File metadata
- Download URL: pytest_marks-0.1-py2.7.egg
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 571a327d6b37655c8f977d5cc3afa52ec1216b62c217086c96b67f9539d88577 |
|
MD5 | 484ace34898ff120ad59b7e0d406ce6b |
|
BLAKE2b-256 | 512a93c58b0bc6a60eff9b56fae4b97020575bdd0f7d68033f981ae6104be730 |