Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Modern, Pythonic test automation
Python
tree: 9b464ff95a

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
attest
docs
.gitignore
AUTHORS.rst
CHANGES.rst
LICENSE
MANIFEST.in
Makefile
README.rst
sampletests.py
setup.cfg
setup.py
tox.ini

README.rst

Modern Test Automation for Python

Attest is a test automation framework for Python emphasising modern idioms and conventions.

from attest import Tests
math = Tests()

@math.test
def arithmetics():
    """Ensure that the laws of physics are in check."""
    assert 1 + 1 == 2

if __name__ == '__main__':
    math.run()

Features

  • Collect tests using decorators instead of matching names against a regexp
  • Set up fixtures as context managers that can be combined and reused
  • Use the assert statement with arbitrary expressions that are inspected on failure
  • Scan for collections by type rather than by name
  • Treat tests as Python packages rather than script files
Something went wrong with that request. Please try again.