Skip to content

Commit

Permalink
remove tests
Browse files Browse the repository at this point in the history
  • Loading branch information
daibhin committed Jan 15, 2025
1 parent 7ac3492 commit 84aebc2
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions posthog/models/error_tracking/test/test_error_tracking.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
from django.db.utils import IntegrityError

from posthog.test.base import BaseTest
from posthog.models.user_group import UserGroup
from posthog.models.error_tracking import (
ErrorTrackingIssue,
ErrorTrackingIssueFingerprintV2,
Expand Down Expand Up @@ -96,15 +95,3 @@ def test_error_tracking_issue_assignment_uniqueness(self):
with pytest.raises(IntegrityError):
ErrorTrackingIssueAssignment.objects.create(issue=issue, user=self.user)
ErrorTrackingIssueAssignment.objects.create(issue=issue, user=self.user)

def test_error_tracking_issue_assignment_ensure_at_least_one(self):
issue = ErrorTrackingIssue.objects.create(team=self.team)
with pytest.raises(IntegrityError):
ErrorTrackingIssueAssignment.objects.create(issue=issue)

def test_error_tracking_issue_assignment_ensure_not_both(self):
issue = ErrorTrackingIssue.objects.create(team=self.team)
user_group = UserGroup.objects.create(team=self.team)

with pytest.raises(IntegrityError):
ErrorTrackingIssueAssignment.objects.create(issue=issue, user=self.user, user_group=user_group)

0 comments on commit 84aebc2

Please sign in to comment.