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],
...
}
Metadata
Release files for nose-sqlcapture 1.0.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nose_sqlcapture-1.0.7-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for nose_sqlcapture-1.0.7-py2.py3-none-any.whl |
Release files / nose_sqlcapture-1.0.7-py2.py3-none-any.whl
| Download URL | nose_sqlcapture-1.0.7-py2.py3-none-any.whl |
|---|---|
| Size | 5.4 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
77786580328b8a9652b178c5d76c9b3955d5a18c3aa3615ad6247add7f4e0658
|
|
BLAKE2b-256 checksum How to use checksums |
e609b350594b407f77dff299bc13c770673cae86e305e777347621c07d9f7f66
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for nose-sqlcapture 1.0.7
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.