datastax-python-driver

Unit Tests for Python: Mock Patch

Unit Tests for Python: Mock Patch Question: I am trying to write Unit Tests for Cassandra but am not able to get it work. Here is the code: CassandraLoggingModel.py: import uuid from cassandra.cqlengine import columns from datetime import datetime from cassandra.cqlengine.models import Model class CassandraRunLog(Model): pipeline_id = columns.Text(partition_key=True, max_length=180) task_id = columns.Text(partition_key=True, max_length=180) execution_date = …

Total answers: 1