Skip to content

Commit

Permalink
remove teams conversion test?
Browse files Browse the repository at this point in the history
  • Loading branch information
mdtro committed Jan 14, 2025
1 parent 808151f commit 98dc539
Showing 1 changed file with 0 additions and 25 deletions.
25 changes: 0 additions & 25 deletions tests/sentry/api/serializers/test_auditlogentry.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,31 +72,6 @@ def test_data_field_empty_when_no_required_fields(self):

assert result["data"] == {}

def test_teams_conversion(self):
"""Test that teams are properly converted from objects to IDs"""

class MockTeam:
def __init__(self, id):
self.id = id

log = AuditLogEntry.objects.create(
organization_id=self.organization.id,
event=audit_log.get_event_id("PROJECT_EDIT"),
actor=self.user,
datetime=timezone.now(),
data={
"id": "123",
"slug": "project-slug",
"teams": [MockTeam(1), MockTeam(2)],
},
)

serializer = AuditLogEntrySerializer()
result = serialize(log, serializer=serializer)

assert result["data"]["teams"] == [1, 2]
assert isinstance(result["data"]["teams"][0], int)

def test_scim_logname(self):
uuid_prefix = "681d6e"
user = self.create_user(
Expand Down

0 comments on commit 98dc539

Please sign in to comment.