Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
Jade Wibbels committed Jan 17, 2025
1 parent 6dd1678 commit 7713582
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions tests/ctl/models/test_sql_models.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from fides.api.models.sql_models import PrivacyDeclaration
from fides.api.db.system import get_system
from fides.api.models.sql_models import PrivacyDeclaration


def test_system_privacy_declarations_in_alphabetical_order(db, system):
Expand All @@ -17,7 +17,7 @@ def test_system_privacy_declarations_in_alphabetical_order(db, system):
"data_use": "essential",
"name": "Another Declaration Name",
"system_id": system.id,
}
},
]
for data in new_privacy_declarations:
PrivacyDeclaration.create(db=db, data=data)
Expand All @@ -29,4 +29,6 @@ def test_system_privacy_declarations_in_alphabetical_order(db, system):
privacy_declarations = updated_system.privacy_declarations
sorted_privacy_declarations = sorted(privacy_declarations, key=lambda x: x.name)

assert privacy_declarations == sorted_privacy_declarations, "Privacy declarations are not in alphabetical order by name"
assert (
privacy_declarations == sorted_privacy_declarations
), "Privacy declarations are not in alphabetical order by name"

0 comments on commit 7713582

Please sign in to comment.