Skip to content

Commit 464bb18

Browse files
committed
Fixing typo in model type, fixing missed regex 2.7 compatibility issue
1 parent 338473a commit 464bb18

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

tests/integration/cqlengine/model/test_class_construction.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def test_attempting_to_make_duplicate_column_names_fails(self):
7070
Tests that trying to create conflicting db column names will fail
7171
"""
7272

73-
with self.assertRaisesRegex(ModelException, r".*more than once$"):
73+
with self.assertRaisesRegexp(ModelException, r".*more than once$"):
7474
class BadNames(Model):
7575
words = columns.Text(primary_key=True)
7676
content = columns.Text(db_field='words')

tests/integration/cqlengine/test_ifexists.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030

3131
class TestIfExistsModel(Model):
3232

33-
id = columns.Integer(primary_key=True, default=lambda: uuid4())
33+
id = columns.UUID(primary_key=True, default=lambda: uuid4())
3434
count = columns.Integer()
3535
text = columns.Text(required=False)
3636

0 commit comments

Comments
 (0)