[](https://travis-ci.org/bfirsh/needle)
Needle is a tool for testing your CSS with [Selenium](http://seleniumhq.org/) and [nose](http://somethingaboutorange.com/mrl/projects/nose/).
It checks that CSS renders correctly by taking screenshots of portions of a website and comparing them against known good screenshots. It also provides tools for testing calculated CSS values and the position of HTML elements.
Example
This is what a Needle test case looks like:
from needle.cases import NeedleTestCase
- class BBCNewsTest(NeedleTestCase):
- def test_masthead(self):
self.driver.get(’http://www.bbc.co.uk/news/’) self.assertScreenshot(‘#blq-mast’, ‘bbc-masthead’)
This example checks for regressions in the appearance of the BBC’s masthead.
Documentation
Full documentation is on [Read the Docs](http://needle.readthedocs.org/).
Running Needle’s test suite
$ nosetests
Metadata
Release files for needle 0.2.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| needle-0.2.3.tar.gz | 43.1 kB | Without provenance | Details |
Release files / needle-0.2.3.tar.gz
| Download URL | needle-0.2.3.tar.gz |
|---|---|
| Size | 43.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
685a23aaaf7f557b604b933af8c80bb0a27ef3406466a294d04996bd90ddbac2
|
|
BLAKE2b-256 checksum How to use checksums |
23ceca1f07698165a398b043127f31634a5fc4866ea44cabc671d08957c9623a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for needle 0.2.3
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.