Skip to content

Commit 7f03f07

Browse files
committed
Remove schema mgnt warning for all cqlengine tests
1 parent 8f076e9 commit 7f03f07

2 files changed

Lines changed: 3 additions & 7 deletions

File tree

tests/integration/cqlengine/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,18 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15+
import os
1516
import warnings
1617

1718
from cassandra.cqlengine import connection
18-
from cassandra.cqlengine.management import create_keyspace_simple
19+
from cassandra.cqlengine.management import create_keyspace_simple, CQLENG_ALLOW_SCHEMA_MANAGEMENT
1920

2021
from tests.integration import use_single_node, PROTOCOL_VERSION
2122

2223

2324
def setup_package():
2425
warnings.simplefilter('always') # for testing warnings, make sure all are let through
26+
os.environ[CQLENG_ALLOW_SCHEMA_MANAGEMENT] = '1'
2527

2628
use_single_node()
2729

tests/integration/cqlengine/management/__init__.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,3 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
import os
16-
17-
from cassandra.cqlengine.management import CQLENG_ALLOW_SCHEMA_MANAGEMENT
18-
19-
def setup_package():
20-
os.environ[CQLENG_ALLOW_SCHEMA_MANAGEMENT] = '1'

0 commit comments

Comments
 (0)