|
@@ -644,8 +644,7 @@ class DeleteUptimeSubscriptionsForProjectTest(UptimeTestCase):
|
|
|
|
|
|
|
|
|
class DeleteProjectUptimeSubscriptionTest(UptimeTestCase):
|
|
|
- @mock.patch("sentry.quotas.backend.disable_seat")
|
|
|
- def test_other_subscriptions(self, mock_disable_seat):
|
|
|
+ def test_other_subscriptions(self):
|
|
|
other_project = self.create_project()
|
|
|
proj_sub = get_or_create_project_uptime_subscription(
|
|
|
self.project,
|
|
@@ -674,10 +673,8 @@ class DeleteProjectUptimeSubscriptionTest(UptimeTestCase):
|
|
|
proj_sub.refresh_from_db()
|
|
|
|
|
|
assert UptimeSubscription.objects.filter(id=other_sub.uptime_subscription_id).exists()
|
|
|
- mock_disable_seat.assert_called_with(DataCategory.UPTIME, proj_sub)
|
|
|
|
|
|
- @mock.patch("sentry.quotas.backend.disable_seat")
|
|
|
- def test_single_subscriptions(self, mock_disable_seat):
|
|
|
+ def test_single_subscriptions(self):
|
|
|
proj_sub = get_or_create_project_uptime_subscription(
|
|
|
self.project,
|
|
|
self.environment,
|
|
@@ -694,7 +691,6 @@ class DeleteProjectUptimeSubscriptionTest(UptimeTestCase):
|
|
|
|
|
|
with pytest.raises(UptimeSubscription.DoesNotExist):
|
|
|
proj_sub.uptime_subscription.refresh_from_db()
|
|
|
- mock_disable_seat.assert_called_with(DataCategory.UPTIME, proj_sub)
|
|
|
|
|
|
|
|
|
class RemoveUptimeSubscriptionIfUnusedTest(UptimeTestCase):
|