From 803e5742fcc2a901a40695a5d5dab81202bf668a Mon Sep 17 00:00:00 2001 From: GregBestland Date: Thu, 15 Oct 2015 15:02:09 -0500 Subject: [PATCH] Fixing issue with default_keyspace being over-ridden in cqlengine tests --- tests/integration/cqlengine/query/test_named.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/tests/integration/cqlengine/query/test_named.py b/tests/integration/cqlengine/query/test_named.py index 90a6ce32..73b7921b 100644 --- a/tests/integration/cqlengine/query/test_named.py +++ b/tests/integration/cqlengine/query/test_named.py @@ -17,6 +17,7 @@ from cassandra.cqlengine.named import NamedKeyspace from cassandra.cqlengine.operators import EqualsOperator, GreaterThanOrEqualOperator from cassandra.cqlengine.query import ResultObject from cassandra.concurrent import execute_concurrent_with_args +from cassandra.cqlengine import models from tests.integration.cqlengine.base import BaseCassEngTestCase from tests.integration.cqlengine.query.test_queryset import BaseQuerySetUsage @@ -263,7 +264,13 @@ class TestQuerySetCountSelectionAndIteration(BaseQuerySetUsage): self.table.objects.get(test_id=1) -class TestTableWithMV(BasicSharedKeyspaceUnitTestCase): +class TestAlpha(BasicSharedKeyspaceUnitTestCase): + + def setUp(self): + self.default_keyspace = models.DEFAULT_KEYSPACE + + def tearDown(self): + models.DEFAULT_KEYSPACE = self.default_keyspace def test_named_table_with_mv(self): """