We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3e8ca5d commit fffb812Copy full SHA for fffb812
packages/settings-library/tests/test_postgres.py
@@ -17,15 +17,12 @@ def test_cached_property_dsn(mock_environment: dict):
17
settings = PostgresSettings()
18
19
# all are upper-case
20
- assert all(key == key.upper() for key in settings.dict())
21
-
22
- # dsn is computed from the other fields
23
- assert "dsn" not in settings.dict()
24
25
- # causes cached property to be computed and stored on the instance
+ assert all(key == key.upper() for key in settings.model_dump())
+
26
assert settings.dsn
27
28
- assert "dsn" in settings.dict()
+ # dsn is computed from the other fields
+ assert "dsn" not in settings.model_dump()
29
30
31
def test_dsn_with_query(mock_environment: dict, monkeypatch):
0 commit comments