Capture SQL queries being generated from a nosetests run
Project description
SQLCapture nose plugin
Capture SQL queries being generated from a nosetests run
Installation
Do `pip install nose-sqlcapture` in your project. Your project should already have `nosetests` and `sqlalchemy` installed.
Usage
`nosetests [other options] --with-sqlcapture --sqlcapture-filename=sql.log --sqlcapture-format=json`
sqlcapture-filename the output file. Default: /tmp/sqlcapture.log
sqlcapture-format the format of the log file, either json or plain. Default: plain
Formats
Plain (plain)
Output in plain-text form that’s meant for human consumption. The output is of the following format:
test1 test2 SQL1 --- test1 test3 SQL2 --- ...
JSON (json)
Ouptut the queries and their corresponding tests in json format:
{ SQL1: [test1, test2], SQL2: [test1, test3], ... }
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for nose_sqlcapture-1.0.5-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e80dc470f3aec52b4550898b30ad8dcb258bc3d592049d2548520d39f4f92b9a |
|
MD5 | 99ee46a9a422e79d98ef06e0a7167845 |
|
BLAKE2b-256 | 23de97c286c9392b6054e142f0eed6422af4396c918ebc052a7243eeda3c4742 |