Skip to content

Commit 5d49f4d

Browse files
committed
improve test name and fix column type to match
1 parent b55b87d commit 5d49f4d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -353,8 +353,8 @@ class EmptyModel(Model): pass
353353
assert not hasattr(one, 'bar')
354354

355355
@mark.xfail(raises=AttributeError)
356-
def test_replace_column_same_type(self):
357-
self.db.run("ALTER TABLE foo ADD COLUMN biz int NOT NULL DEFAULT 0")
356+
def test_replace_column_same_type_different_name(self):
357+
self.db.run("ALTER TABLE foo ADD COLUMN biz text NOT NULL DEFAULT 0")
358358
self.db.run("ALTER TABLE foo DROP COLUMN bar")
359359
one = self.db.one("SELECT foo.*::foo FROM foo LIMIT 1")
360360
assert one.biz == 0

0 commit comments

Comments
 (0)