Clarified some parts of the code in the tests
This commit is contained in:
@@ -313,11 +313,12 @@ class QueryUpdateTests(BaseCassEngTestCase):
|
|||||||
obj = TestQueryUpdateModel.objects(
|
obj = TestQueryUpdateModel.objects(
|
||||||
partition=partition, cluster=cluster).first()
|
partition=partition, cluster=cluster).first()
|
||||||
|
|
||||||
self.assertFalse(any([obj._values[column].deleted for column in obj._values]))
|
self.assertFalse({k: v for (k, v) in obj._values.items() if v.deleted})
|
||||||
|
|
||||||
obj.text = 'foo'
|
obj.text = 'foo'
|
||||||
obj.save()
|
obj.save()
|
||||||
|
#execute_count will check the execution count and
|
||||||
|
#assert no more calls than necessary where made
|
||||||
|
|
||||||
class StaticDeleteModel(Model):
|
class StaticDeleteModel(Model):
|
||||||
example_id = columns.Integer(partition_key=True, primary_key=True, default=uuid4)
|
example_id = columns.Integer(partition_key=True, primary_key=True, default=uuid4)
|
||||||
|
|||||||
Reference in New Issue
Block a user