From cab1395f54febe93667c24484f56936aeb7c238f Mon Sep 17 00:00:00 2001 From: Ivan Dlugos Date: Wed, 23 Sep 2026 20:43:56 +0200 Subject: [PATCH] fix(tests): Stop expecting an active repo to be reported as reactivated getsentry/sentry#125158 changed create_repositories to refresh an already active repository without reporting it as reactivated. The test added in getsentry/sentry#123820 was written against the old behavior and the two landed without a CI run on their combination. --- tests/sentry/plugins/test_integration_repository.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/sentry/plugins/test_integration_repository.py b/tests/sentry/plugins/test_integration_repository.py index 882cfc7d6c68..1666f97045df 100644 --- a/tests/sentry/plugins/test_integration_repository.py +++ b/tests/sentry/plugins/test_integration_repository.py @@ -346,14 +346,14 @@ def test_create_repositories__does_not_adopt_over_an_existing_row( external_id=self.config["external_id"], ) legacy.update(status=ObjectStatus.HIDDEN) - existing = self._create_repo(external_id=self.config["external_id"]) + self._create_repo(external_id=self.config["external_id"]) created, reactivated, missing = self.provider.create_repositories( [self.config], self.organization ) assert created == [] - assert {repo.id for repo in reactivated} == {existing.id} + assert reactivated == [] assert missing == [self.provider.build_repository_config(self.organization, self.config)] legacy.refresh_from_db() assert (legacy.status, legacy.provider) == (ObjectStatus.HIDDEN, "github")