Python wrapper around cassandra-unit that helps you write isolated unittests in Django and other python applications.
Construct a PysandraUnit object. Java server won’t be started yet
| Parameters: |
|
|---|
Cleans all Cassandra Keyspaces and reloads data if dataset is provided in constructor If server is not running, ‘PysandraUnitServerError’ exception will be raised
Returns Cassandra server host and rpc port in format: ‘localhost:9710’
Load schema into Cassandra from dataset file If file isn’t provided the one from constructior will be used
| Parameters: | dataset_path – path to the dataset file. Check cassandra-unit docs for details |
|---|
Start Pysandra and Cassandra server, loads dataset file if provided in the constructor If server is already running, ‘PysandraUnitServerError’ exception will be raised
Stop Pysandra and Cassandra server if running