removing obsolete tests
This commit is contained in:
@@ -116,39 +116,6 @@ class TestQuerySetOperation(BaseCassEngTestCase):
|
|||||||
with self.assertRaises(query.QueryException):
|
with self.assertRaises(query.QueryException):
|
||||||
TestModel.objects(5)
|
TestModel.objects(5)
|
||||||
|
|
||||||
def test_filter_method_where_clause_generation(self):
|
|
||||||
"""
|
|
||||||
Tests the where clause creation
|
|
||||||
"""
|
|
||||||
query1 = TestModel.objects(test_id=5)
|
|
||||||
ids = [o.query_value.identifier for o in query1._where]
|
|
||||||
where = query1._where_clause()
|
|
||||||
assert where == '"test_id" = :{}'.format(*ids)
|
|
||||||
|
|
||||||
query2 = query1.filter(expected_result__gte=1)
|
|
||||||
ids = [o.query_value.identifier for o in query2._where]
|
|
||||||
where = query2._where_clause()
|
|
||||||
assert where == '"test_id" = :{} AND "expected_result" >= :{}'.format(*ids)
|
|
||||||
|
|
||||||
def test_query_expression_where_clause_generation(self):
|
|
||||||
"""
|
|
||||||
Tests the where clause creation
|
|
||||||
"""
|
|
||||||
query1 = TestModel.objects(TestModel.test_id == 5)
|
|
||||||
ids = [o.query_value.identifier for o in query1._where]
|
|
||||||
where = query1._where_clause()
|
|
||||||
assert where == '"test_id" = :{}'.format(*ids)
|
|
||||||
|
|
||||||
query2 = query1.filter(TestModel.expected_result >= 1)
|
|
||||||
ids = [o.query_value.identifier for o in query2._where]
|
|
||||||
where = query2._where_clause()
|
|
||||||
assert where == '"test_id" = :{} AND "expected_result" >= :{}'.format(*ids)
|
|
||||||
|
|
||||||
def test_querystring_generation(self):
|
|
||||||
"""
|
|
||||||
Tests the select querystring creation
|
|
||||||
"""
|
|
||||||
|
|
||||||
def test_queryset_is_immutable(self):
|
def test_queryset_is_immutable(self):
|
||||||
"""
|
"""
|
||||||
Tests that calling a queryset function that changes it's state returns a new queryset
|
Tests that calling a queryset function that changes it's state returns a new queryset
|
||||||
|
|||||||
Reference in New Issue
Block a user