Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ref: speed up flagpole tests (#74949)
```console $ time pytest tests/flagpole/ /Users/asottile/workspace/sentry/.venv/lib/python3.11/site-packages/phabricator/__init__.py:12: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html __version__ = __import__('pkg_resources') \ ============================== test session starts ============================== platform darwin -- Python 3.11.8, pytest-8.0.0, pluggy-1.4.0 django: version: 5.0.7 rootdir: /Users/asottile/workspace/sentry configfile: pyproject.toml plugins: fail-slow-0.3.0, rerunfailures-11.0, json-report-1.5.0, metadata-3.1.1, time-machine-2.13.0, xdist-3.0.2, pytest_sentry-0.3.0, anyio-3.7.1, django-4.8.0, cov-4.0.0 collected 45 items tests/flagpole/test_conditions.py .......................... [ 57%] tests/flagpole/test_evaluation_context.py ......... [ 77%] tests/flagpole/test_feature.py .......... [100%] ============================== 45 passed in 4.22s =============================== real 0m7.365s user 0m4.001s sys 0m0.634s $ git apply patch $ time pytest tests/flagpole/ /Users/asottile/workspace/sentry/.venv/lib/python3.11/site-packages/phabricator/__init__.py:12: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html __version__ = __import__('pkg_resources') \ ============================== test session starts ============================== platform darwin -- Python 3.11.8, pytest-8.0.0, pluggy-1.4.0 django: version: 5.0.7 rootdir: /Users/asottile/workspace/sentry configfile: pyproject.toml plugins: fail-slow-0.3.0, rerunfailures-11.0, json-report-1.5.0, metadata-3.1.1, time-machine-2.13.0, xdist-3.0.2, pytest_sentry-0.3.0, anyio-3.7.1, django-4.8.0, cov-4.0.0 collected 45 items tests/flagpole/test_conditions.py .......................... [ 57%] tests/flagpole/test_evaluation_context.py ......... [ 77%] tests/flagpole/test_feature.py .......... [100%] ============================== 45 passed in 0.55s =============================== real 0m3.489s user 0m2.584s sys 0m0.549s ``` <!-- Describe your PR here. -->
- Loading branch information