Skip to content

Commit

Permalink
fix flexible default test
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasLaPiana committed Nov 27, 2023
1 parent d82bf8c commit 537537c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/fideslang/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,7 @@ def parent_key_checks(self) -> "DataCategory":

return self


class Cookies(BaseModel):
"""The Cookies resource model"""

Expand Down Expand Up @@ -967,8 +968,8 @@ class PrivacyDeclaration(BaseModel):
features: List[str] = Field(
default=[], description="The features of processing personal data."
)
flexible_legal_basis_for_processing: Optional[bool] = Field(
default=None,
flexible_legal_basis_for_processing: bool = Field(
default=True,
description="Whether the legal basis for processing is 'flexible' (i.e. can be overridden in a privacy notice) for this declaration.",
)
legal_basis_for_processing: Optional[LegalBasisForProcessingEnum] = Field(
Expand Down Expand Up @@ -1010,7 +1011,6 @@ class PrivacyDeclaration(BaseModel):
model_config = ConfigDict(from_attributes=True)



class SystemMetadata(BaseModel):
"""
The SystemMetadata resource model.
Expand Down
1 change: 0 additions & 1 deletion tests/fideslang/test_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,6 @@ def test_expanded_system(self):
def test_flexible_legal_basis_default(self):
pd = PrivacyDeclaration(
data_categories=[],
data_qualifier="aggregated_data",
data_subjects=[],
data_use="provide",
ingress=["user"],
Expand Down

0 comments on commit 537537c

Please sign in to comment.