From 20faa7caa3e0462e56489525d1293f263e251117 Mon Sep 17 00:00:00 2001 From: antazoey Date: Wed, 11 Sep 2024 13:29:01 -0500 Subject: [PATCH] chore: use new patched pydantic settings (#2276) --- setup.py | 2 +- tests/functional/test_project.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index 2eb418d82b..e00825915d 100644 --- a/setup.py +++ b/setup.py @@ -110,7 +110,7 @@ "pandas>=2.2.2,<3", "pluggy>=1.3,<2", "pydantic>=2.6.4,<3", - "pydantic-settings>=2.4.0,<2.5", # Bug in pydantic_settings + "pydantic-settings>=2.5.2,<3", "pytest>=8.0,<9.0", "python-dateutil>=2.8.2,<3", "PyYAML>=5.0,<7", diff --git a/tests/functional/test_project.py b/tests/functional/test_project.py index 9da19395b2..99436d0570 100644 --- a/tests/functional/test_project.py +++ b/tests/functional/test_project.py @@ -158,12 +158,13 @@ def test_isolate_in_tempdir_does_not_alter_sources(project): try: with project.isolate_in_tempdir() as tmp_project: # The new (bad) source should be in the temp project. - assert "tests/newsource.json" in (tmp_project.manifest.sources or {}), project.path + actual = {**(tmp_project.manifest.sources or {})} finally: new_src.unlink() project.sources.refresh() # Ensure "newsource" did not persist in the in-memory manifest. + assert "tests/newsource.json" in actual, project.path assert "tests/newsource.json" not in (project.manifest.sources or {})