Skip to content

Commit 3e8ca5d

Browse files
continue upgrading
1 parent e3510cd commit 3e8ca5d

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

packages/settings-library/tests/test_utils_logging.py

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,10 @@ def _v(cls, value) -> str:
4040
assert settings.LOG_LEVEL == "DEBUG"
4141

4242
assert (
43-
settings.json()
44-
== '{"SC_BOOT_MODE": null, "LOG_LEVEL": "DEBUG", "APPNAME_DEBUG": false}'
43+
settings.model_dump_json()
44+
== '{"SC_BOOT_MODE":null,"LOG_LEVEL":"DEBUG","APPNAME_DEBUG":false}'
4545
)
4646

4747
# test cached-property
4848
assert settings.log_level == logging.DEBUG
49-
# log_level is cached-property (notice that is lower-case!), and gets added after first use
50-
assert (
51-
settings.json()
52-
== '{"SC_BOOT_MODE": null, "LOG_LEVEL": "DEBUG", "APPNAME_DEBUG": false, "log_level": 10}'
53-
)
49+

0 commit comments

Comments
 (0)