summaryrefslogtreecommitdiff
path: root/setuptools/tests/fixtures.py
Commit message (Collapse)AuthorAgeFilesLines
* [CI] Allow pre-built distribution to be used in tests with virtualenvsAnderson Bravalheri2022-03-071-0/+8
|
* Apply suggestions from code reviewAnderson Bravalheri2022-02-271-1/+1
|
* Prevent leaking PYTHONPATH to spawned processes in testsKarolina Surma2022-02-271-1/+12
| | | | | | | This enhances environment isolation, as in special cases, like downstream distro packaging, PYTHONPATH can be set to point to a specific setuptools codebase. When it leaks, it shadows the virtual environment's paths and produces wrong test results.
* Only resolve 'parent' directory when xdist is in use. Fixes #3059.Jason R. Coombs2022-01-291-2/+4
|
* Replace tmp_src fixture with the virtualenv fixturesAnderson Bravalheri2022-01-061-17/+0
| | | | | | | | | Instead of re-building/installing setuptools from the source tree every time, the tests now rely on the venv, wheel and sdist fixtures (the venv fixture is populated from sdist/wheel). Moreover migrate `test_virtualenv` to use `jaraco.envs` (so it uses the same libraries ad `test_distutils_adoption`).
* Extract venv fixtures from test_distutils_adoptionAnderson Bravalheri2022-01-061-1/+31
| | | | | … and change it to install the pre-build setuptools wheel (fixture) instead of installing from the source tree
* Add fixtures for sdist and wheel artifactsAnderson Bravalheri2022-01-061-0/+32
| | | | | | | They should be build once for each session and be able to be re-used in parallel (assuming read-only) for all tests. This is useful when dealing with virtual environments
* Add test capturing missed expectation. Ref #2612.Jason R. Coombs2021-03-201-0/+14
|
* Extract workaround for pytest-dev/pytest-xdist#376 as a fixture. Invoke the ↵Jason R. Coombs2021-01-181-0/+19
| | | | repair at the session level and only when xdist is present.
* Rely on rootdir to determine the source. Avoids coupling with position in ↵Jason R. Coombs2021-01-181-9/+2
| | | | the test suite.
* Avoid indirection in src_dirJason R. Coombs2021-01-171-4/+1
|
* Make `test_pip_upgrade_from_source` xdist-friendlySviatoslav Sydorenko2021-01-181-0/+28
|
* Fix tests with pytest 6.2Chih-Hsuan Yen2020-12-131-2/+2
| | | | | | | | The latest pytest deprecates pytest.yield_fixture in favor of pytest.fixture [1]. The changelog [2] says that both are the same. [1] https://github.com/pytest-dev/pytest/pull/7988 [2] https://docs.pytest.org/en/stable/changelog.html#pytest-6-2-0-2020-12-12
* ReindentJason R. Coombs2016-07-301-5/+5
|
* Don't rely on mock in the pluginJason R. Coombs2016-07-301-7/+3
|
* Use unittest.mock from standard library instead of external mock with Python ↵Arfrever Frehtes Taifersar Arahesis2015-01-151-1/+4
| | | | >=3.3.
* Rewrite test using pytest.Jason R. Coombs2015-01-021-0/+7
|
* Also save the ENABLE_USER_SITE setting in the user_override.Jason R. Coombs2015-01-011-1/+2
|
* Move fixture to a fixtures module and make that fixture available globally.Jason R. Coombs2015-01-011-0/+16