Skip to content

Commit ebcb65a

Browse files
committed
fix test ordering
1 parent 2c40534 commit ebcb65a

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

tests/sentry/seer/autofix/test_autofix_utils.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1519,17 +1519,6 @@ def test_bulk_returns_correct_preferences(self):
15191519
assert pref2.automation_handoff.integration_id == 99
15201520
assert pref2.automation_handoff.auto_create_pr is False
15211521

1522-
def test_autofix_automation_tuning_defaults_to_off(self):
1523-
SeerProjectRepository.objects.create(
1524-
project=self.project1, repository=self.repo, branch_name="main"
1525-
)
1526-
1527-
result = bulk_read_preferences_from_sentry_db(self.organization.id, [self.project1.id])
1528-
1529-
pref = result[self.project1.id]
1530-
assert pref is not None
1531-
assert pref.autofix_automation_tuning == AutofixAutomationTuningSettings.OFF
1532-
15331522
def test_autofix_automation_tuning_populated(self):
15341523
SeerProjectRepository.objects.create(
15351524
project=self.project1, repository=self.repo, branch_name="main"
@@ -1550,6 +1539,17 @@ def test_autofix_automation_tuning_populated(self):
15501539
assert pref2 is not None
15511540
assert pref2.autofix_automation_tuning == AutofixAutomationTuningSettings.OFF
15521541

1542+
def test_autofix_automation_tuning_defaults_to_off(self):
1543+
SeerProjectRepository.objects.create(
1544+
project=self.project1, repository=self.repo, branch_name="main"
1545+
)
1546+
1547+
result = bulk_read_preferences_from_sentry_db(self.organization.id, [self.project1.id])
1548+
1549+
pref = result[self.project1.id]
1550+
assert pref is not None
1551+
assert pref.autofix_automation_tuning == AutofixAutomationTuningSettings.OFF
1552+
15531553
def test_wrong_organization_excluded(self):
15541554
other_org = self.create_organization()
15551555
SeerProjectRepository.objects.create(

0 commit comments

Comments
 (0)