Python unittest CassandraTestCase

Python unittest TestCase which starts Cassandra server on the first setUp and reloads data for every test case

class pysandraunit.unittest.CassandraTestCase(methodName='runTest')
classmethod set_global_settings(settings)

Set pysandraunit settings

Parameters:settings – module or class with pysandraunit configuration

Accepted options are:

PYSANDRA_SCHEMA_FILE_PATH = ‘path_to_schema’

PYSANDRA_TMP_DIR = ‘/tmp/path’

PYSANDRA_RPC_PORT = port

PYSANDRA_NATIVE_TRANSPORT_PORT = port

PYSANDRA_CASSANDRA_YAML_OPTIONS = {}

exception pysandraunit.unittest.CassandraTestCaseConfigException

Previous topic

PysandraUnit

Next topic

Django CassandraTestCase

This Page