Casdriv Testing

Test succesfull local cassandra db setup, used for further testing.

class tests.db_api.test_casdriv.Plant(**values)[source]

Bases: cassandra.cqlengine.models.Model

Plant Dataclass, ready to be cassandrad.

Parameters
  • latin (str) – String specifying the latin plant name. Used as the primary key

  • english (str, Container) – String, or container of strings, specifying the english trivial names.

  • german (str, Container) – String, or container of strings, specifying the german trivial names.

exception DoesNotExist

Bases: cassandra.cqlengine.models.DoesNotExist

exception MultipleObjectsReturned

Bases: cassandra.cqlengine.models.MultipleObjectsReturned

class tests.db_api.test_casdriv.ClusterPlant(**values)[source]

Bases: cassandra.cqlengine.models.Model

Plant Dataclass, ready to be cassandrad.

Has additional clustering keys sorted in ascending order.

Parameters
  • latin (str) – String specifying the latin plant name. Used as the primary key

  • english (str, Container) – String, or container of strings, specifying the english trivial names.

  • german (str, Container) – String, or container of strings, specifying the german trivial names.

exception DoesNotExist

Bases: cassandra.cqlengine.models.DoesNotExist

exception MultipleObjectsReturned

Bases: cassandra.cqlengine.models.MultipleObjectsReturned

tests.db_api.test_casdriv.test_cluster_name(casdriv_cns)[source]

Test correct cluster name getting of casriv.

tests.db_api.test_casdriv.test_keyspace_simple_creation(casdriv_cns)[source]

Test creating a keyspace using casdriv.

tests.db_api.test_casdriv.test_list_cluster_keyspaces(casdriv_cns)[source]

Test casdriv list_cluster_keyspaces utility.

tests.db_api.test_casdriv.test_create_entry(casdriv_cns)[source]

Test creating a db entry using create_entry.

tests.db_api.test_casdriv.test_create_entry_without_syncing(casdriv_cns)[source]

Test creating a db entry using create_entry.

tests.db_api.test_casdriv.test_create_cluster_entry(casdriv_cns)[source]

Test creating a db entry using create_entry and clustering keys.

tests.db_api.test_casdriv.test_read_entry(casdriv_cns)[source]

Test creating a db entry using create_entry.

tests.db_api.test_casdriv.test_read_entry_exception(casdriv_cns)[source]

Test creating a db entry using create_entry.

tests.db_api.test_casdriv.test_list_primary_keys(casdriv_cns)[source]

Test creating a db entry using create_entry.

tests.db_api.test_casdriv.test_list_table_columns(casdriv_cns)[source]

Test creating a db entry using create_entry.

tests.db_api.test_casdriv.test_delete_entry(casdriv_cns)[source]

Test deleting a db entry using create_entry.

tests.db_api.test_casdriv.test_get_all_entries(casdriv_cns)[source]

Test deleting a db entry using casdriv.delete_entry.