| 1 |
import pytest |
| 2 |
|
| 3 |
|
| 4 |
@pytest.hookspec(firstresult=True) |
| 5 |
def pytest_emoji_passed(config): |
| 6 |
"""Called to get a representation for a passed test item. |
| 7 |
|
| 8 |
Requires a tuple of (<shortletter>, <verbose-word>) |
| 9 |
pytest defaults to ('.', 'PASSED') |
| 10 |
""" |
| 11 |
|
| 12 |
|
| 13 |
@pytest.hookspec(firstresult=True) |
| 14 |
def pytest_emoji_failed(config): |
| 15 |
"""Called to get a representation for a failed test item. |
| 16 |
|
| 17 |
Requires a tuple of (<shortletter>, <verbose-word>) |
| 18 |
pytest defaults to ('F', 'FAILED') |
| 19 |
""" |
| 20 |
|
| 21 |
|
| 22 |
@pytest.hookspec(firstresult=True) |
| 23 |
def pytest_emoji_skipped(config): |
| 24 |
"""Called to get a representation for a skipped test item. |
| 25 |
|
| 26 |
Requires a tuple of (<shortletter>, <verbose-word>) |
| 27 |
pytest default to ('s', 'SKIPPED') |
| 28 |
""" |
| 29 |
|
| 30 |
|
| 31 |
@pytest.hookspec(firstresult=True) |
| 32 |
def pytest_emoji_error(config): |
| 33 |
"""Called to get a representation for a error test item. |
| 34 |
|
| 35 |
Requires a tuple of (<shortletter>, <verbose-word>) |
| 36 |
pytest defaults to ('E', 'ERROR') |
| 37 |
""" |
| 38 |
|
| 39 |
|
| 40 |
@pytest.hookspec(firstresult=True) |
| 41 |
def pytest_emoji_xfailed(config): |
| 42 |
"""Called to get a representation for a xfailed test item. |
| 43 |
|
| 44 |
Requires a tuple of (<shortletter>, <verbose-word>) |
| 45 |
pytest defaults to ('x', 'XFAIL') |
| 46 |
""" |
| 47 |
|
| 48 |
|
| 49 |
@pytest.hookspec(firstresult=True) |
| 50 |
def pytest_emoji_xpassed(config): |
| 51 |
"""Called to get a representation for a xpassed test item. |
| 52 |
|
| 53 |
Requires a tuple of (<shortletter>, <verbose-word>) |
| 54 |
pytest defaults to ('X', 'XPASS') |
| 55 |
""" |