Skip to content

Commit 59ab2c7

Browse files
committed
Add migration test
1 parent 95a15bf commit 59ab2c7

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
from sentry.testutils.cases import TestMigrations
2+
3+
4+
class AddPreprodModelsTests(TestMigrations):
5+
app = "preprod"
6+
migrate_from = "0001_emerge_upload_models"
7+
migrate_to = "0001_emerge_upload_models"
8+
9+
def setup_initial_state(self):
10+
pass
11+
12+
def test(self):
13+
from sentry.preprod.models import PreprodArtifact
14+
15+
org = self.create_organization()
16+
project = self.create_project(organization=org)
17+
PreprodArtifact.objects.create(project=project)

0 commit comments

Comments
 (0)