play cassandra¶
pytest-play support for Cassandra expressions and assertions
More info and examples on:
- pytest-play, documentation
- cookiecutter-qa, see
pytest-play
in action with a working example if you want to start hacking
Features¶
This project defines a new pytest-play command:
{
'provider': 'play_cassandra'
'type': 'execute',
'connection': {
'contact_points': ['10.1.1.3', '10.1.1.4', '10.1.1.5'],
'port': '9042',
'auth_provider': {'username': '$username', 'password': '$password'}
},
'keyspace': 'users',
'query': 'SELECT name, age, email FROM users WHERE user_id=15',
'condition': '1 > 0',
'variable': 'user1_age',
'variable_expression': 'results[0].age',
'assertion': 'results[0].name == "User 1"'
}
Credits¶
This package was created with Cookiecutter and the cookiecutter-play-plugin (based on audreyr/cookiecutter-pypackage project template).