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.
To install, either
* pip install pytest-marks
* python setup.py install
============
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.
To install, either
* pip install pytest-marks
* python setup.py install
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pytest-marks-0.4.tar.gz
(2.0 kB
view details)
File details
Details for the file pytest-marks-0.4.tar.gz
.
File metadata
- Download URL: pytest-marks-0.4.tar.gz
- Upload date:
- Size: 2.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2d9970568e164cf8de6cc9b9f243f24750715cec0ec67109020aac6ef22834b6 |
|
MD5 | edaf600ddae40685df4a6fe05601e540 |
|
BLAKE2b-256 | 72b69c9dce170c70998a89a95d7ab9706ba7da9b82d0ca5736843d2f60c6b977 |