From 7b844b19be0458c4415efb22087d67c50ba8628f Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sun, 1 Dec 2024 09:37:21 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=A7=AA=20Update=20pytest=20from=20~=3D7.0?= =?UTF-8?q?=20to=20~=3D8.0=20(and=20plugins)=20(#1361)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Chris Sewell --- pyproject.toml | 18 +++++++++++++----- .../__snapshots__/test_add_sections_sigs.ambr | 1 + tests/__snapshots__/test_api_usage.ambr | 1 + tests/__snapshots__/test_basic_doc.ambr | 1 + tests/__snapshots__/test_external.ambr | 1 + tests/__snapshots__/test_extra_options.ambr | 1 + tests/__snapshots__/test_list2need.ambr | 1 + tests/__snapshots__/test_need_constraints.ambr | 1 + tests/__snapshots__/test_need_parts.ambr | 1 + tests/__snapshots__/test_needarch.ambr | 1 + tests/__snapshots__/test_needextend.ambr | 1 + tests/__snapshots__/test_needimport.ambr | 1 + tests/__snapshots__/test_needs_builder.ambr | 1 + tests/__snapshots__/test_needs_from_toml.ambr | 1 + tests/__snapshots__/test_needs_id_builder.ambr | 1 + tests/__snapshots__/test_needuml.ambr | 1 + tests/__snapshots__/test_service_github.ambr | 1 + 17 files changed, 29 insertions(+), 5 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 9d838acec..b761ce1fa 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -41,16 +41,16 @@ plotting = ["matplotlib>=3.3.0"] # for needpie / needbar test = [ "defusedxml~=0.7.1", "matplotlib>=3.3.0", - "pytest~=7.0", - "pytest-cov~=4.0", - "syrupy~=3.0", + "pytest~=8.0", + "pytest-cov~=6.0", + "syrupy~=4.0", "sphinxcontrib-plantuml~=0.0", "lxml>=4.6.5,<5.0", "responses~=0.22.0", - "pytest-xprocess~=0.22.2", + "pytest-xprocess~=1.0", ] test-parallel = ["pytest-xdist"] -benchmark = ["pytest-benchmark~=4.0", "memray>=1.3.1,<2.0.0"] +benchmark = ["pytest-benchmark~=5.0", "memray>=1.3.1,<2.0.0"] docs = [ "matplotlib>=3.3.0", "sphinxcontrib-plantuml~=0.0", @@ -153,6 +153,14 @@ extras = commands = pytest --ignore tests/benchmarks {posargs:tests} +[testenv:py{39,310,311,312,313}-benchmark] +extras = + test + benchmark + docs +commands = + pytest {posargs:tests/benchmarks} + [testenv:docs-{alabaster,furo,im,pds,rtd}] extras = docs diff --git a/tests/__snapshots__/test_add_sections_sigs.ambr b/tests/__snapshots__/test_add_sections_sigs.ambr index 0dcf95f97..592e41aba 100644 --- a/tests/__snapshots__/test_add_sections_sigs.ambr +++ b/tests/__snapshots__/test_add_sections_sigs.ambr @@ -1,3 +1,4 @@ +# serializer version: 1 # name: test_section_is_usable_in_filters[test_app0] dict({ 'R_12345': dict({ diff --git a/tests/__snapshots__/test_api_usage.ambr b/tests/__snapshots__/test_api_usage.ambr index 5c98b6b20..0a8a2a850 100644 --- a/tests/__snapshots__/test_api_usage.ambr +++ b/tests/__snapshots__/test_api_usage.ambr @@ -1,3 +1,4 @@ +# serializer version: 1 # name: test_api_add_type[test_app0] list([ dict({ diff --git a/tests/__snapshots__/test_basic_doc.ambr b/tests/__snapshots__/test_basic_doc.ambr index e9f5f1a89..67cdaa33b 100644 --- a/tests/__snapshots__/test_basic_doc.ambr +++ b/tests/__snapshots__/test_basic_doc.ambr @@ -1,3 +1,4 @@ +# serializer version: 1 # name: test_build_needs[test_app0] dict({ 'current_version': '0.1.0', diff --git a/tests/__snapshots__/test_external.ambr b/tests/__snapshots__/test_external.ambr index 48630882e..e20b724c5 100644 --- a/tests/__snapshots__/test_external.ambr +++ b/tests/__snapshots__/test_external.ambr @@ -1,3 +1,4 @@ +# serializer version: 1 # name: test_export_import_round_trip dict({ 'current_version': '1.3', diff --git a/tests/__snapshots__/test_extra_options.ambr b/tests/__snapshots__/test_extra_options.ambr index e8e659288..65f5c1f77 100644 --- a/tests/__snapshots__/test_extra_options.ambr +++ b/tests/__snapshots__/test_extra_options.ambr @@ -1,3 +1,4 @@ +# serializer version: 1 # name: test_custom_attributes_appear[test_app0] dict({ 'current_version': '', diff --git a/tests/__snapshots__/test_list2need.ambr b/tests/__snapshots__/test_list2need.ambr index 6c44aa230..780f47b50 100644 --- a/tests/__snapshots__/test_list2need.ambr +++ b/tests/__snapshots__/test_list2need.ambr @@ -1,3 +1,4 @@ +# serializer version: 1 # name: test_doc_list2need_html[test_app0] dict({ 'NEED-002': dict({ diff --git a/tests/__snapshots__/test_need_constraints.ambr b/tests/__snapshots__/test_need_constraints.ambr index 26130144b..0ceb7e64c 100644 --- a/tests/__snapshots__/test_need_constraints.ambr +++ b/tests/__snapshots__/test_need_constraints.ambr @@ -1,3 +1,4 @@ +# serializer version: 1 # name: test_need_constraints[test_app0] dict({ 'current_version': '', diff --git a/tests/__snapshots__/test_need_parts.ambr b/tests/__snapshots__/test_need_parts.ambr index 547d55644..1af968471 100644 --- a/tests/__snapshots__/test_need_parts.ambr +++ b/tests/__snapshots__/test_need_parts.ambr @@ -1,3 +1,4 @@ +# serializer version: 1 # name: test_doc_need_parts[test_app0] dict({ 'SP_TOO_001': dict({ diff --git a/tests/__snapshots__/test_needarch.ambr b/tests/__snapshots__/test_needarch.ambr index 33f7b9120..2ff40610b 100644 --- a/tests/__snapshots__/test_needarch.ambr +++ b/tests/__snapshots__/test_needarch.ambr @@ -1,3 +1,4 @@ +# serializer version: 1 # name: test_doc_needarch_jinja_import[test_app0] dict({ 'needarch-index-0': dict({ diff --git a/tests/__snapshots__/test_needextend.ambr b/tests/__snapshots__/test_needextend.ambr index 182849287..53afef2ef 100644 --- a/tests/__snapshots__/test_needextend.ambr +++ b/tests/__snapshots__/test_needextend.ambr @@ -1,3 +1,4 @@ +# serializer version: 1 # name: test_doc_needextend_dynamic[test_app0] dict({ 'current_version': '', diff --git a/tests/__snapshots__/test_needimport.ambr b/tests/__snapshots__/test_needimport.ambr index 3122c2157..a4685764b 100644 --- a/tests/__snapshots__/test_needimport.ambr +++ b/tests/__snapshots__/test_needimport.ambr @@ -1,3 +1,4 @@ +# serializer version: 1 # name: test_import_builder[test_app0] dict({ 'current_version': '1.0', diff --git a/tests/__snapshots__/test_needs_builder.ambr b/tests/__snapshots__/test_needs_builder.ambr index a095bbbac..7e33def5a 100644 --- a/tests/__snapshots__/test_needs_builder.ambr +++ b/tests/__snapshots__/test_needs_builder.ambr @@ -1,3 +1,4 @@ +# serializer version: 1 # name: test_doc_needs_builder[test_app0] dict({ 'current_version': '1.0', diff --git a/tests/__snapshots__/test_needs_from_toml.ambr b/tests/__snapshots__/test_needs_from_toml.ambr index aedbd26c0..dd19fb6a2 100644 --- a/tests/__snapshots__/test_needs_from_toml.ambr +++ b/tests/__snapshots__/test_needs_from_toml.ambr @@ -1,3 +1,4 @@ +# serializer version: 1 # name: test_needs_from_toml[test_app0] dict({ 'current_version': '0.1.0', diff --git a/tests/__snapshots__/test_needs_id_builder.ambr b/tests/__snapshots__/test_needs_id_builder.ambr index 6fc506ea8..a596a524f 100644 --- a/tests/__snapshots__/test_needs_id_builder.ambr +++ b/tests/__snapshots__/test_needs_id_builder.ambr @@ -1,3 +1,4 @@ +# serializer version: 1 # name: test_doc_needs_id_builder[test_app0] dict({ 'TC_001.json': dict({ diff --git a/tests/__snapshots__/test_needuml.ambr b/tests/__snapshots__/test_needuml.ambr index 3a39501ca..536476fcd 100644 --- a/tests/__snapshots__/test_needuml.ambr +++ b/tests/__snapshots__/test_needuml.ambr @@ -1,3 +1,4 @@ +# serializer version: 1 # name: test_doc_build_html[test_app0] dict({ 'COMP_001': dict({ diff --git a/tests/__snapshots__/test_service_github.ambr b/tests/__snapshots__/test_service_github.ambr index 862de1b7b..a6d235119 100644 --- a/tests/__snapshots__/test_service_github.ambr +++ b/tests/__snapshots__/test_service_github.ambr @@ -1,3 +1,4 @@ +# serializer version: 1 # name: test_build[test_app0] dict({ 'current_version': '1',