Skip to content

Commit

Permalink
chore: use new patched pydantic settings (#2276)
Browse files Browse the repository at this point in the history
  • Loading branch information
antazoey authored Sep 11, 2024
1 parent d0eb2a7 commit 20faa7c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
3 changes: 2 additions & 1 deletion tests/functional/test_project.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 {})


Expand Down

0 comments on commit 20faa7c

Please sign in to comment.