Skip to content

Commit a37efc1

Browse files
fix minor
1 parent 4606e1f commit a37efc1

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

packages/common-library/tests/test_serialization.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
from typing import Final
2-
31
import pytest
42
from common_library.serialization import model_dump_with_secrets
53
from pydantic import BaseModel, SecretStr
@@ -10,9 +8,6 @@ class Credentials(BaseModel):
108
PASSWORD: SecretStr | None = None
119

1210

13-
ME: Final[Credentials] = Credentials(USERNAME="DeepThought", PASSWORD=SecretStr("42"))
14-
15-
1611
@pytest.mark.parametrize(
1712
"expected,show_secrets",
1813
[
@@ -27,4 +22,4 @@ class Credentials(BaseModel):
2722
],
2823
)
2924
def test_model_dump_with_secrets(expected: dict, show_secrets: bool):
30-
assert expected == model_dump_with_secrets(ME, show_secrets=show_secrets)
25+
assert expected == model_dump_with_secrets(Credentials(USERNAME="DeepThought", PASSWORD=SecretStr("42")), show_secrets=show_secrets)

0 commit comments

Comments
 (0)