Skip to content

Commit

Permalink
Update test_packages_distributions
Browse files Browse the repository at this point in the history
  • Loading branch information
domdfcoding committed Mar 13, 2024
1 parent b36faa7 commit 12eac3a
Show file tree
Hide file tree
Showing 3 changed files with 305 additions and 3 deletions.
20 changes: 17 additions & 3 deletions tests/test_distributions.py
Original file line number Diff line number Diff line change
Expand Up @@ -605,11 +605,25 @@ def test_wheel_wrong_dist_info(tmp_pathplus: PathPlus):
only_pypy("Output differs on PyPy")
]
),
pytest.param(
"3.7",
marks=[
only_version(3.7, reason="Output differs on Python 3.7"),
not_pypy("Output differs on PyPy")
]
),
pytest.param(
"3.7-pypy",
marks=[
only_version(3.7, reason="Output differs on Python 3.7"),
only_pypy("Output differs on PyPy")
]
),
pytest.param(
"cpython",
marks=[
pytest.mark.skipif(
not ((3, 7) <= sys.version_info[:2] <= (3, 10)),
not ((3, 8) <= sys.version_info[:2] <= (3, 10)),
reason="Output differs on Python 3.7"
),
not_pypy("Output differs on PyPy")
Expand All @@ -619,7 +633,7 @@ def test_wheel_wrong_dist_info(tmp_pathplus: PathPlus):
"pypy",
marks=[
pytest.mark.skipif(
not ((3, 7) <= sys.version_info[:2] <= (3, 10)),
not ((3, 8) <= sys.version_info[:2] <= (3, 10)),
reason="Output differs on Python 3.7"
),
only_pypy("Output differs on PyPy")
Expand All @@ -628,7 +642,7 @@ def test_wheel_wrong_dist_info(tmp_pathplus: PathPlus):
pytest.param("3.11", marks=only_version("3.11", reason="Output differs on Python 3.11")),
]
)
def test_packages_distributions(advanced_data_regression: AdvancedDataRegressionFixture, version):
def test_packages_distributions(advanced_data_regression: AdvancedDataRegressionFixture, version: str):

data = distributions.packages_distributions()
advanced_data_regression.check({k: list(v) for k, v in data.items()})
145 changes: 145 additions & 0 deletions tests/test_distributions_/test_packages_distributions_3_7_.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,145 @@
_distutils_hack:
- setuptools
_pytest:
- pytest
_yaml:
- PyYAML
alabaster:
- alabaster
apeye:
- apeye
apeye_core:
- apeye-core
atomicwrites:
- atomicwrites
attr:
- attrs
attrs:
- attrs
babel:
- Babel
certifi:
- certifi
charset_normalizer:
- charset-normalizer
click:
- click
coincidence:
- coincidence
colorama:
- colorama
consolekit:
- consolekit
coverage:
- coverage
coverage_pyver_pragma:
- coverage-pyver-pragma
deprecation:
- deprecation
deprecation_alias:
- deprecation-alias
dist_meta:
- dist-meta
docutils:
- docutils
dom_toml:
- dom_toml
domdf_python_tools:
- domdf-python-tools
exceptiongroup:
- exceptiongroup
first:
- first
flake8:
- flake8
handy_archives:
- handy-archives
hpy:
- hpy
idna:
- idna
imagesize:
- imagesize
importlib_metadata:
- importlib-metadata
iniconfig:
- iniconfig
jinja2:
- Jinja2
markupsafe:
- MarkupSafe
mccabe:
- mccabe
mistletoe:
- mistletoe
natsort:
- natsort
packaging:
- packaging
pip:
- pip
pkg_resources:
- setuptools
platformdirs:
- platformdirs
pluggy:
- pluggy
py:
- pytest
pycodestyle:
- pycodestyle
pyflakes:
- pyflakes
pygments:
- Pygments
pyparsing:
- pyparsing
pypi_json:
- pypi-json
pytest:
- pytest
pytest_cov:
- pytest-cov
pytest_datadir:
- pytest-datadir
pytest_randomly:
- pytest-randomly
pytest_regressions:
- pytest-regressions
pytest_rerunfailures:
- pytest-rerunfailures
pytest_timeout:
- pytest-timeout
pytz:
- pytz
requests:
- requests
setuptools:
- setuptools
shippinglabel:
- shippinglabel
snowballstemmer:
- snowballstemmer
sphinx:
- Sphinx
sphinxcontrib:
- sphinxcontrib-applehelp
- sphinxcontrib-devhelp
- sphinxcontrib-htmlhelp
- sphinxcontrib-jsmath
- sphinxcontrib-qthelp
- sphinxcontrib-serializinghtml
toml:
- toml
tomli:
- tomli
typing_extensions:
- typing_extensions
urllib3:
- urllib3
wheel:
- wheel
yaml:
- PyYAML
zipp:
- zipp
143 changes: 143 additions & 0 deletions tests/test_distributions_/test_packages_distributions_3_7_pypy_.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,143 @@
_distutils_hack:
- setuptools
_pytest:
- pytest
_yaml:
- PyYAML
alabaster:
- alabaster
apeye:
- apeye
apeye_core:
- apeye-core
atomicwrites:
- atomicwrites
attr:
- attrs
attrs:
- attrs
babel:
- Babel
certifi:
- certifi
charset_normalizer:
- charset-normalizer
click:
- click
coincidence:
- coincidence
colorama:
- colorama
consolekit:
- consolekit
coverage:
- coverage
coverage_pyver_pragma:
- coverage-pyver-pragma
deprecation:
- deprecation
deprecation_alias:
- deprecation-alias
dist_meta:
- dist-meta
docutils:
- docutils
dom_toml:
- dom_toml
domdf_python_tools:
- domdf-python-tools
exceptiongroup:
- exceptiongroup
first:
- first
flake8:
- flake8
handy_archives:
- handy-archives
idna:
- idna
imagesize:
- imagesize
importlib_metadata:
- importlib-metadata
iniconfig:
- iniconfig
jinja2:
- Jinja2
markupsafe:
- MarkupSafe
mccabe:
- mccabe
mistletoe:
- mistletoe
natsort:
- natsort
packaging:
- packaging
pip:
- pip
pkg_resources:
- setuptools
platformdirs:
- platformdirs
pluggy:
- pluggy
py:
- pytest
pycodestyle:
- pycodestyle
pyflakes:
- pyflakes
pygments:
- Pygments
pyparsing:
- pyparsing
pypi_json:
- pypi-json
pytest:
- pytest
pytest_cov:
- pytest-cov
pytest_datadir:
- pytest-datadir
pytest_randomly:
- pytest-randomly
pytest_regressions:
- pytest-regressions
pytest_rerunfailures:
- pytest-rerunfailures
pytest_timeout:
- pytest-timeout
pytz:
- pytz
requests:
- requests
setuptools:
- setuptools
shippinglabel:
- shippinglabel
snowballstemmer:
- snowballstemmer
sphinx:
- Sphinx
sphinxcontrib:
- sphinxcontrib-applehelp
- sphinxcontrib-devhelp
- sphinxcontrib-htmlhelp
- sphinxcontrib-jsmath
- sphinxcontrib-qthelp
- sphinxcontrib-serializinghtml
toml:
- toml
tomli:
- tomli
typing_extensions:
- typing_extensions
urllib3:
- urllib3
wheel:
- wheel
yaml:
- PyYAML
zipp:
- zipp

0 comments on commit 12eac3a

Please sign in to comment.