Added initial support for function and class reporting in the HTML report.
There are now three index pages which link to each other: files, functions,
and classes. Other reports don't yet have this information, but it will be
added in the future where it makes sense. Feedback gladly accepted!
Finishes issue 780_.
Other HTML report improvements:
There is now a "hide covered" checkbox to filter out 100% files, finishing
issue 1384_.
The index page is always sorted by one of its columns, with clearer
indications of the sorting.
The "previous file" shortcut key didn't work on the index page, but now it
does, fixing issue 1765_.
The debug output showing which configuration files were tried now shows
absolute paths to help diagnose problems where settings aren't taking effect,
and is renamed from "attempted_config_files" to the more logical
"config_files_attempted."
[#178](https://github.com/pytest-dev/pluggy/issues/178) <https://github.com/pytest-dev/pluggy/issues/178>_: Add support for deprecating specific hook parameters, or more generally, for issuing a warning whenever a hook implementation requests certain parameters.
See :ref:warn_on_impl for details.
Bug Fixes
[#481](https://github.com/pytest-dev/pluggy/issues/481) <https://github.com/pytest-dev/pluggy/issues/481>_: PluginManager.get_plugins() no longer returns None for blocked plugins.
#12069: A deprecation warning is now raised when implementations of one of the following hooks request a deprecated py.path.local parameter instead of the pathlib.Path parameter which replaced it:
pytest_ignore_collect{.interpreted-text role="hook"} - the path parameter - use collection_path instead.
pytest_collect_file{.interpreted-text role="hook"} - the path parameter - use file_path instead.
pytest_pycollect_makemodule{.interpreted-text role="hook"} - the path parameter - use module_path instead.
pytest_report_header{.interpreted-text role="hook"} - the startdir parameter - use start_path instead.
pytest_report_collectionfinish{.interpreted-text role="hook"} - the startdir parameter - use start_path instead.
The replacement parameters are available since pytest 7.0.0.
The old parameters will be removed in pytest 9.0.0.
See legacy-path-hooks-deprecated{.interpreted-text role="ref"} for more details.
Features
#11871: Added support for reading command line arguments from a file using the prefix character @, like e.g.: pytest @tests.txt. The file must have one argument per line.
See Read arguments from file <args-from-file>{.interpreted-text role="ref"} for details.
Improvements
#11523: pytest.importorskip{.interpreted-text role="func"} will now issue a warning if the module could be found, but raised ImportError{.interpreted-text role="class"} instead of ModuleNotFoundError{.interpreted-text role="class"}.
The warning can be suppressed by passing exc_type=ImportError to pytest.importorskip{.interpreted-text role="func"}.
See import-or-skip-import-error{.interpreted-text role="ref"} for details.
#11728: For unittest-based tests, exceptions during class cleanup (as raised by functions registered with TestCase.addClassCleanup <unittest.TestCase.addClassCleanup>{.interpreted-text role="meth"}) are now reported instead of silently failing.
#11777: Text is no longer truncated in the short test summary info section when -vv is given.
#12112: Improved namespace packages detection when consider_namespace_packages{.interpreted-text role="confval"} is enabled, covering more situations (like editable installs).
#9502: Added PYTEST_VERSION{.interpreted-text role="envvar"} environment variable which is defined at the start of the pytest session and undefined afterwards. It contains the value of pytest.__version__, and among other things can be used to easily check if code is running from within a pytest run.
Bug Fixes
#12065: Fixed a regression in pytest 8.0.0 where test classes containing setup_method and tests using @staticmethod or @classmethod would crash with AttributeError: 'NoneType' object has no attribute 'setup_method'.
Now the request.instance <pytest.FixtureRequest.instance>{.interpreted-text role="attr"} attribute of tests using @staticmethod and @classmethod is no longer None, but a fresh instance of the class, like in non-static methods.
- Add support for multiple appending override options (-x, --override) on command line - by :user:`amitschang`. (:issue:`3261`)
- Add support for inverting exit code success criteria using bang (!) (:issue:`3271`)
Bugfixes - 4.15.0
Fix issue that the leading character c was dropped from packages in constraints files - by :user:jugmac00. (:issue:3247)
Allow appending to deps with --override testenv.deps+=foo - by :user:stefanor. (:issue:3256)
Fix non-existing branch rewrite in the documentation to main. (:issue:3257)
Update test typing for build 1.2.0, which has an explicit Distribution type - by :user:stefanor. (:issue:3260)
Fix broken input parsing for --discover flag. - by :user:mimre25 (:issue:3272)
Improved Documentation - 4.15.0
- Rephrase ``--discover`` flag's description to avoid confusion between paths and executables. - by :user:`mimre25` (:issue:`3274`)
- fix PATH-based Python discovery on Windows - by :user:`ofek`. (:issue:`2712`)
v20.26.0 (2024-04-23)
Bugfixes - 20.26.0
allow builtin discovery to discover specific interpreters (e.g. python3.12) given an unspecific spec (e.g. python3) - by :user:flying-sheep. (:issue:2709)
v20.25.3 (2024-04-17)
Bugfixes - 20.25.3
- Python 3.13.0a6 renamed pathmod to parser. (:issue:`2702`)
Use types from collections.abc instead of typing. #150
Fully specify exported types as reported by pyright. #152
1.8.0
This is the Blinker 1.8.0 feature release, which may include new features, remove previously deprecated code, or add new deprecations. The 1.8.x line is now the supported fix branch, support has ended for the 1.7.x line. We encourage everyone to upgrade, and to use a tool such as pip-tools to pin all dependencies and control upgrades. Test with warnings treated as errors to be able to adapt to deprecation warnings early.
api-change:chime-sdk-voice: [botocore] Due to changes made by the Amazon Alexa service, GetSipMediaApplicationAlexaSkillConfiguration and PutSipMediaApplicationAlexaSkillConfiguration APIs are no longer available for use. For more information, refer to the Alexa Smart Properties page.
api-change:codeartifact: [botocore] Add support for the Ruby package format.
api-change:fms: [botocore] AWS Firewall Manager now supports the network firewall service stream exception policy feature for accounts within your organization.
api-change:omics: [botocore] Add support for workflow sharing and dynamic run storage
api-change:opensearch: [botocore] This release enables customers to create Route53 A and AAAA alias record types to point custom endpoint domain to OpenSearch domain's dualstack search endpoint.
api-change:pinpoint-sms-voice-v2: [botocore] Amazon Pinpoint has added two new features Multimedia services (MMS) and protect configurations. Use the three new MMS APIs to send media messages to a mobile phone which includes image, audio, text, or video files. Use the ten new protect configurations APIs to block messages to specific countries.
api-change:qbusiness: [botocore] This is a general availability (GA) release of Amazon Q Business. Q Business enables employees in an enterprise to get comprehensive answers to complex questions and take actions through a unified, intuitive web-based chat experience - using an enterprise's existing content, data, and systems.
api-change:quicksight: [botocore] New Q embedding supporting Generative Q&A
api-change:route53resolver: [botocore] Release of FirewallDomainRedirectionAction parameter on the Route 53 DNS Firewall Rule. This allows customers to configure a DNS Firewall rule to inspect all the domains in the DNS redirection chain (default) , such as CNAME, ALIAS, DNAME, etc., or just the first domain and trust the rest.
api-change:sagemaker: [botocore] Amazon SageMaker Training now supports the use of attribute-based access control (ABAC) roles for training job execution roles. Amazon SageMaker Inference now supports G6 instance types.
api-change:signer: [botocore] Documentation updates for AWS Signer. Adds cross-account signing constraint and definitions for cross-account actions.
1.34.94
api-change:amplify: [botocore] Updating max results limit for listing any resources (Job, Artifacts, Branch, BackendResources, DomainAssociation) to 50 with the exception of list apps that where max results can be up to 100.
api-change:connectcases: [botocore] This feature releases DeleteField, DeletedLayout, and DeleteTemplate API's
api-change:inspector2: [botocore] Update Inspector2 to include new Agentless API parameters.
api-change:timestream-query: [botocore] This change allows users to update and describe account settings associated with their accounts.
api-change:transcribe: [botocore] This update provides error messaging for generative call summarization in Transcribe Call Analytics
api-change:trustedadvisor: [botocore] This release adds the BatchUpdateRecommendationResourceExclusion API to support batch updates of Recommendation Resource exclusion statuses and introduces a new exclusion status filter to the ListRecommendationResources and ListOrganizationRecommendationResources APIs.
1.34.93
api-change:codepipeline: [botocore] Add ability to manually and automatically roll back a pipeline stage to a previously successful execution.
api-change:cognito-idp: [botocore] Add LimitExceededException to SignUp errors
api-change:connectcampaigns: [botocore] This release adds support for specifying if Answering Machine should wait for prompt sound.
api-change:marketplace-entitlement: [botocore] Releasing minor endpoint updates.
api-change:oam: [botocore] This release introduces support for Source Accounts to define which Metrics and Logs to share with the Monitoring Account
api-change:rds: [botocore] SupportsLimitlessDatabase field added to describe-db-engine-versions to indicate whether the DB engine version supports Aurora Limitless Database.
api-change:support: [botocore] Releasing minor endpoint updates.
api-change:fms: [botocore] AWS Firewall Manager adds support for network ACL policies to manage Amazon Virtual Private Cloud (VPC) network access control lists (ACLs) for accounts in your organization.
api-change:ivs: [botocore] Bug Fix: IVS does not support arns with the svs prefix
api-change:ivs-realtime: [botocore] Bug Fix: IVS Real Time does not support ARNs using the svs prefix.
api-change:rds: [botocore] Updates Amazon RDS documentation for setting local time zones for RDS for Db2 DB instances.
api-change:stepfunctions: [botocore] Add new ValidateStateMachineDefinition operation, which performs syntax checking on the definition of a Amazon States Language (ASL) state machine.
api-change:chime-sdk-voice: Due to changes made by the Amazon Alexa service, GetSipMediaApplicationAlexaSkillConfiguration and PutSipMediaApplicationAlexaSkillConfiguration APIs are no longer available for use. For more information, refer to the Alexa Smart Properties page.
api-change:codeartifact: Add support for the Ruby package format.
api-change:fms: AWS Firewall Manager now supports the network firewall service stream exception policy feature for accounts within your organization.
api-change:omics: Add support for workflow sharing and dynamic run storage
api-change:opensearch: This release enables customers to create Route53 A and AAAA alias record types to point custom endpoint domain to OpenSearch domain's dualstack search endpoint.
api-change:pinpoint-sms-voice-v2: Amazon Pinpoint has added two new features Multimedia services (MMS) and protect configurations. Use the three new MMS APIs to send media messages to a mobile phone which includes image, audio, text, or video files. Use the ten new protect configurations APIs to block messages to specific countries.
api-change:qbusiness: This is a general availability (GA) release of Amazon Q Business. Q Business enables employees in an enterprise to get comprehensive answers to complex questions and take actions through a unified, intuitive web-based chat experience - using an enterprise's existing content, data, and systems.
api-change:quicksight: New Q embedding supporting Generative Q&A
api-change:route53resolver: Release of FirewallDomainRedirectionAction parameter on the Route 53 DNS Firewall Rule. This allows customers to configure a DNS Firewall rule to inspect all the domains in the DNS redirection chain (default) , such as CNAME, ALIAS, DNAME, etc., or just the first domain and trust the rest.
api-change:sagemaker: Amazon SageMaker Training now supports the use of attribute-based access control (ABAC) roles for training job execution roles. Amazon SageMaker Inference now supports G6 instance types.
api-change:signer: Documentation updates for AWS Signer. Adds cross-account signing constraint and definitions for cross-account actions.
1.34.94
api-change:amplify: Updating max results limit for listing any resources (Job, Artifacts, Branch, BackendResources, DomainAssociation) to 50 with the exception of list apps that where max results can be up to 100.
api-change:connectcases: This feature releases DeleteField, DeletedLayout, and DeleteTemplate API's
api-change:inspector2: Update Inspector2 to include new Agentless API parameters.
api-change:timestream-query: This change allows users to update and describe account settings associated with their accounts.
api-change:transcribe: This update provides error messaging for generative call summarization in Transcribe Call Analytics
api-change:trustedadvisor: This release adds the BatchUpdateRecommendationResourceExclusion API to support batch updates of Recommendation Resource exclusion statuses and introduces a new exclusion status filter to the ListRecommendationResources and ListOrganizationRecommendationResources APIs.
1.34.93
api-change:codepipeline: Add ability to manually and automatically roll back a pipeline stage to a previously successful execution.
api-change:cognito-idp: Add LimitExceededException to SignUp errors
api-change:connectcampaigns: This release adds support for specifying if Answering Machine should wait for prompt sound.
api-change:marketplace-entitlement: Releasing minor endpoint updates.
api-change:oam: This release introduces support for Source Accounts to define which Metrics and Logs to share with the Monitoring Account
api-change:rds: SupportsLimitlessDatabase field added to describe-db-engine-versions to indicate whether the DB engine version supports Aurora Limitless Database.
api-change:support: Releasing minor endpoint updates.
1.34.92
api-change:appsync: UpdateGraphQLAPI documentation update and datasource introspection secret arn update
api-change:fms: AWS Firewall Manager adds support for network ACL policies to manage Amazon Virtual Private Cloud (VPC) network access control lists (ACLs) for accounts in your organization.
api-change:ivs: Bug Fix: IVS does not support arns with the svs prefix
api-change:ivs-realtime: Bug Fix: IVS Real Time does not support ARNs using the svs prefix.
api-change:rds: Updates Amazon RDS documentation for setting local time zones for RDS for Db2 DB instances.
api-change:stepfunctions: Add new ValidateStateMachineDefinition operation, which performs syntax checking on the definition of a Amazon States Language (ASL) state machine.
Bumps the all-dependencies group in /api with 18 updates:
7.4.4
7.5.0
3.13.3
3.14.0
2.5.35
2.5.36
3.6
3.7
4.2.0
4.2.1
1.4.0
1.5.0
8.1.1
8.2.0
4.14.2
4.15.0
20.25.1
20.26.1
1.7.0
1.8.1
1.34.74
1.34.95
1.34.74
1.34.95
3.0.2
3.0.3
2.1.2
2.2.0
3.2.1
3.3
2.6.4
2.7.1
2.16.3
2.18.2
4.10.0
4.11.0
Updates
coverage
from 7.4.4 to 7.5.0Changelog
Sourced from coverage's changelog.
Commits
5f4e034
docs: sample HTML for 7.5.0ed97cfb
docs: prep for 7.5.041e01d3
build: use macos 13 for 3.8 and 3.9 while GitHub rolls out macos 14583f0c0
test: add a test for skipping covered functionsb115ed3
refactor: keep Analysis private40a052e
docs: document CodeRegion and its plugin methods2ff9933
docs: remove comment that now explains nothing.a6ba1c8
fix: html report pages fully validate74c87a8
fix: previous page shortcut works in index page. #1765e016967
feat: main index page links to other index pagesUpdates
filelock
from 3.13.3 to 3.14.0Release notes
Sourced from filelock's releases.
Commits
8556141
feat:blocking
parameter on lock constructor with tests and docs (#325)26ccad3
[pre-commit.ci] pre-commit autoupdate (#324)853e7d1
[pre-commit.ci] pre-commit autoupdate (#323)000a3fa
Raise error on incompatible singleton timeout and mode args (#320)312fb4e
[pre-commit.ci] pre-commit autoupdate (#321)Updates
identify
from 2.5.35 to 2.5.36Commits
838a489
v2.5.36dab738c
Merge pull request #455 from jalaziz/rust-cargo-tagsc0083af
Identify Cargo.toml and Cargo.lock as cargo and cargo-lock80f2107
Merge pull request #452 from pre-commit/pre-commit-ci-update-config73dcf7d
[pre-commit.ci] pre-commit autoupdatef6fb929
Merge pull request #449 from pre-commit/pre-commit-ci-update-config49e2b09
[pre-commit.ci] pre-commit autoupdate21189f2
Merge pull request #448 from pre-commit/pre-commit-ci-update-configf583181
[pre-commit.ci] pre-commit autoupdate1397916
Merge pull request #447 from pre-commit/pre-commit-ci-update-configUpdates
idna
from 3.6 to 3.7Release notes
Sourced from idna's releases.
Changelog
Sourced from idna's changelog.
Commits
1d365e1
Release v3.7c1b3154
Merge pull request #172 from kjd/optimize-contextj0394ec7
Merge branch 'master' into optimize-contextjcd58a23
Merge pull request #152 from elliotwutingfeng/dev5beb28b
More efficient resolution of joiner contexts1b12148
Update ossf/scorecard-action to v2.3.1d516b87
Update Github actions/checkout to v4c095c75
Merge branch 'master' into dev60a0a4c
Fix typo in GitHub Actions workflow key5918a0e
Merge branch 'master' into devUpdates
platformdirs
from 4.2.0 to 4.2.1Release notes
Sourced from platformdirs's releases.
Commits
9781f05
[pre-commit.ci] pre-commit autoupdate (#276)b44d57d
Allow working without ctypes (#275)89b6b2b
[pre-commit.ci] pre-commit autoupdate (#274)f211ab4
[pre-commit.ci] pre-commit autoupdate (#273)077e11e
[pre-commit.ci] pre-commit autoupdate (#272)c8870a1
[pre-commit.ci] pre-commit autoupdate (#271)7039c66
Bump pypa/gh-action-pypi-publish from 1.8.11 to 1.8.14 (#270)16f93e2
[pre-commit.ci] pre-commit autoupdate (#266)f9b9d6d
chore: update dead Microsoft's known folders documentation link (#267)1aece7e
chore: various minor fixes (#263)Updates
pluggy
from 1.4.0 to 1.5.0Changelog
Sourced from pluggy's changelog.
Commits
f8aa4a0
Preparing release 1.5.0b4a8c92
Merge pull request #495 from bluetech/warn-on-impl-args6f6ea68
Add support deprecating hook parameters91f88d2
Merge pull request #496 from bluetech/codecov-action89ce829
ci: replace upload-coverage script with codecov github action29f104d
Lift pluggy (#493)c2b36b4
Merge pull request #491 from pytest-dev/pre-commit-ci-update-config2b533c9
[pre-commit.ci] pre-commit autoupdate04d1bcd
[pre-commit.ci] pre-commit autoupdate (#490)f74e94b
[pre-commit.ci] pre-commit autoupdate (#489)Updates
pytest
from 8.1.1 to 8.2.0Release notes
Sourced from pytest's releases.
... (truncated)
Commits
6bd3f31
Tweak changelog for 8.2.09b6219b
Prepare release version 8.2.0835765c
Merge pull request #12130 from bluetech/fixtures-inline7e7503c
unittest: report class cleanup exceptions (#12250)882c4da
fixtures: inlinefail_fixturefunc
2e8fb9f
fixtures: extract a_check_fixturedef
methodacf2971
fixtures: inline_getnextfixturedef
into_get_active_fixturedef
3c77aec
fixtures: move "request" check earlyd217d68
fixtures: inline_compute_fixture_value
530be28
fixtures: use early return in_get_active_fixturedef
Updates
tox
from 4.14.2 to 4.15.0Release notes
Sourced from tox's releases.
Changelog
Sourced from tox's changelog.
Commits
261b4ca
release 4.15.0c54dfbd
fix(parser): Fix --discover parsed incorrectly from env (#3274)809e10f
Add bang to invert exit code (#3271)822c9d0
[pre-commit.ci] pre-commit autoupdate (#3267)0e5a3db
[pre-commit.ci] pre-commit autoupdate (#3265)f5850c0
Support multiple override appends (#3261)c2be629
Allow appending to deps with the command line (#3259)d28a9ee
Update installation.rst (#3257)a19a946
[pre-commit.ci] pre-commit autoupdate (#3258)a22fe8f
Fix type-checking (#3260)Updates
virtualenv
from 20.25.1 to 20.26.1Release notes
Sourced from virtualenv's releases.
Changelog
Sourced from virtualenv's changelog.
Commits
1563992
release 20.26.1cbbf465
Fix PATH-based Python discovery on Windows (#2712)9eac8a6
Merge pull request #2710 from pypa/release-20.26.01a1fb2b
release 20.26.0477ce18
Allow builtin interpreter discovery to find specific Python versions given a ...4a13deb
Fixed a case when template variable is WindowsPath (#2707)001a327
[pre-commit.ci] pre-commit autoupdate (#2705)abb29cf
Merge pull request #2704 from pypa/release-20.25.346d0400
release 20.25.397438d9
Fix for tests: Python 3.13.0a6 renamed pathmod to parser (#2702)Updates
blinker
from 1.7.0 to 1.8.1Release notes
Sourced from blinker's releases.
Changelog
Sourced from blinker's changelog.
Commits
26f65bd
release version 1.8.1793f8be
Merge pull request #153 from pallets-eco/deprecated-import4313260
fix deprecated receiver_connected importd15107c
Merge pull request #152 from pallets-eco/pyright-exportcceb745
passpyright --verifytypes
f1bbce1
Merge pull request #151 from pallets-eco/cleanup-docs8dc19ff
clean up docstringsfd8a169
Merge pull request #150 from pallets-eco/collections-abcfacf2c3
use collections.abc instead of typing8f9e245
Merge pull request #149 from pallets-eco/deprecated-importUpdates
boto3
from 1.34.74 to 1.34.95Changelog
Sourced from boto3's changelog.
... (truncated)
Commits
dc49ed5
Merge branch 'release-1.34.95'ded69f6
Bumping version to 1.34.959f4321d
Add changelog entries from botocoref474951
Merge branch 'release-1.34.94'32dabda
Merge branch 'release-1.34.94' into develop5a5954d
Bumping version to 1.34.948b3a8f6
Add changelog entries from botocore98b2562
Merge branch 'release-1.34.93'9d2623a
Merge branch 'release-1.34.93' into developb7f2abe
Bumping version to 1.34.93Updates
botocore
from 1.34.74 to 1.34.95Changelog
Sourced from botocore's changelog.
... (truncated)
Commits
932bdc4
Merge branch 'release-1.34.95'5e25032
Bumping version to 1.34.95f5b8865
Update to latest modelsf60fce6
Merge customizations for QBusiness331c5fe
Merge branch 'release-1.34.94' into develop2c34707
Merge branch 'release-1.34.94'e1d6ee1
Bumping version to 1.34.9405b9fb3
Update endpoints modele09fb85
Update to latest models