{"id":13482739,"url":"https://github.com/python-needle/needle","last_synced_at":"2025-03-27T13:32:32.514Z","repository":{"id":1268301,"uuid":"1207377","full_name":"python-needle/needle","owner":"python-needle","description":"Automated tests for your CSS.","archived":false,"fork":false,"pushed_at":"2022-11-05T17:23:40.000Z","size":194,"stargazers_count":592,"open_issues_count":20,"forks_count":49,"subscribers_count":22,"default_branch":"master","last_synced_at":"2025-03-26T01:09:01.081Z","etag":null,"topics":["css","python","screenshot","testing"],"latest_commit_sha":null,"homepage":"https://needle.readthedocs.io/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/python-needle.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGES.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2010-12-30T00:59:36.000Z","updated_at":"2025-01-20T21:26:40.000Z","dependencies_parsed_at":"2023-01-13T11:03:41.842Z","dependency_job_id":null,"html_url":"https://github.com/python-needle/needle","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/python-needle%2Fneedle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/python-needle%2Fneedle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/python-needle%2Fneedle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/python-needle%2Fneedle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/python-needle","download_url":"https://codeload.github.com/python-needle/needle/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245854610,"owners_count":20683389,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["css","python","screenshot","testing"],"created_at":"2024-07-31T17:01:05.047Z","updated_at":"2025-03-27T13:32:32.184Z","avatar_url":"https://github.com/python-needle.png","language":"Python","readme":"Needle\n======\n\n[![Build Status](https://travis-ci.org/python-needle/needle.png?branch=master)](https://travis-ci.org/python-needle/needle)\n\nNeedle is a tool for testing visuals with [Selenium](http://seleniumhq.org/) \nand [nose](https://nose.readthedocs.io/).\n\nIt checks that visuals (CSS/fonts/images/SVG/etc.) render correctly by taking\nscreenshots of portions of a website and comparing them against known good\nscreenshots. It also provides tools for testing calculated CSS values and the\nposition of HTML elements.\n\nExample\n-------\n\nThis is what a Needle test case looks like:\n\n```python\nfrom needle.cases import NeedleTestCase\n\nclass BBCNewsTest(NeedleTestCase):\n    def test_masthead(self):\n        self.driver.get('http://www.bbc.co.uk/news/')\n        self.assertScreenshot('#blq-mast', 'bbc-masthead')\n```\n\nThis example checks for regressions in the appearance of the BBC's masthead.\n\nDocumentation\n-------------\n\nFull documentation available on [Read the Docs](https://needle.readthedocs.io/).\n\nIf you'd like to build the documentation yourself, first install ``sphinx``:\n\n    pip install sphinx\n    \nThen run:\n\n    cd docs\n    make html\n    \nThe documentation will then be available browsable from\n``docs/_build/index.html``.\n\nRunning Needle's test suite\n---------------------------\n\nFirst install tox (usually via ``pip install tox``).  Then:\n\n    $ tox\n","funding_links":[],"categories":["Python","Tools and frameworks","Tools and frameworks (a-z↓)"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpython-needle%2Fneedle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpython-needle%2Fneedle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpython-needle%2Fneedle/lists"}