Skip to content

Commit 154c86c

Browse files
committed
fixing sqlite tests
1 parent a74741a commit 154c86c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/apps/migrations/auto/test_migration_manager.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212

1313
class TestMigrationManager(DBTestCase):
14+
@postgres_only
1415
def test_rename_column(self):
1516
"""
1617
Test running a MigrationManager which contains a column rename
@@ -81,6 +82,7 @@ async def run():
8182
with self.assertRaises(HasRun):
8283
asyncio.run(manager.run_backwards())
8384

85+
@postgres_only
8486
def test_add_table(self):
8587
"""
8688
Test adding a table to a MigrationManager.
@@ -105,6 +107,7 @@ def test_add_table(self):
105107
self.assertEqual(self.table_exists("musician"), False)
106108
self.run_sync("DROP TABLE IF EXISTS musician;")
107109

110+
@postgres_only
108111
def test_add_column(self):
109112
"""
110113
Test adding a column to a MigrationManager.
@@ -141,6 +144,7 @@ def test_add_column(self):
141144
response = self.run_sync("SELECT * FROM manager;")
142145
self.assertEqual(response, [{"id": 1, "name": "Dave"}])
143146

147+
@postgres_only
144148
def test_rename_table(self):
145149
"""
146150
Test renaming a table with MigrationManager.
@@ -232,6 +236,7 @@ def test_alter_column_digits(self):
232236
[{"numeric_precision": 5, "numeric_scale": 2}],
233237
)
234238

239+
@postgres_only
235240
@patch.object(BaseMigrationManager, "get_migration_managers")
236241
def test_drop_table(self, get_migration_managers: MagicMock):
237242
self.run_sync("DROP TABLE IF EXISTS musician;")

0 commit comments

Comments
 (0)