Skip to content

Instantly share code, notes, and snippets.

@kurtschelfthout
Last active September 2, 2022 09:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kurtschelfthout/d4dbe132771cf96d6b401eddfacfa33a to your computer and use it in GitHub Desktop.
Save kurtschelfthout/d4dbe132771cf96d6b401eddfacfa33a to your computer and use it in GitHub Desktop.
referenced from pytest-cloudist Medium article for Meadowrun
def pytest_report_teststatus(report):
category, short, verbose = '', '', ''
if hasattr(report, 'wasxfail'):
if report.skipped:
category = 'xfailed'
verbose = 'xfail'
elif report.passed:
category = 'xpassed'
verbose = ('XPASS', {'yellow': True})
return (category, short, verbose)
elif report.when in ('setup', 'teardown'):
if report.failed:
category = 'error'
verbose = 'ERROR'
elif report.skipped:
category = 'skipped'
verbose = 'SKIPPED'
return (category, short, verbose)
category = report.outcome
verbose = category.upper()
return (category, short, verbose)
In pandas/tests/scalar, skipped test_timedelta::test_round_sanity and test_unary_ops::test_round_sanity as they are flaky.
Skipped pandas/tests/test_common::test_git_version as didn't have a git repository on the remote workers.
Skipped pandas/tests/util/test_show_versions::test_show_versions_console
cython==0.29.30
pytest>=6.0
pytest-cov
pytest-xdist>=1.31
psutil
pytest-asyncio>=0.17
boto3
python-dateutil
numpy
pytz
hypothesis
lxml
setuptools>=51.0.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment