Skip to main content

Capture SQL queries being generated from a nosetests run

Project description

SQLCapture nose plugin

Capture SQL queries being generated from a nosetests run


Do `pip install nose-sqlcapture` in your project. Your project should already have `nosetests` and `sqlalchemy` installed.


`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


Plain (plain)

Output in plain-text form that’s meant for human consumption. The output is of the following format:


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.

Files for nose-sqlcapture, version 1.0.5
Filename, size File type Python version Upload date Hashes
Filename, size nose_sqlcapture-1.0.5-py2.py3-none-any.whl (5.2 kB) File type Wheel Python version 2.7 Upload date Hashes View
Filename, size nose-sqlcapture-1.0.5.tar.gz (5.4 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page