Skip to content
Newer
Older
100644 31 lines (21 sloc) 775 Bytes
5a009a6 @bradleyayers Use reStructuredText rather than markdown for README
bradleyayers authored Apr 23, 2012
1 Modern Test Automation for Python
2 =================================
f885298 @dag Even more so
authored Nov 11, 2010
3
1b17d19 @dag let's not throw dirt at others; we test more than units
authored May 20, 2011
4 Attest is a test automation framework for Python emphasising modern idioms
5 and conventions.
ee8d116 @dag README
authored Nov 11, 2010
6
5a009a6 @bradleyayers Use reStructuredText rather than markdown for README
bradleyayers authored Apr 23, 2012
7 .. code-block:: python
ee8d116 @dag README
authored Nov 11, 2010
8
5a009a6 @bradleyayers Use reStructuredText rather than markdown for README
bradleyayers authored Apr 23, 2012
9 from attest import Tests
10 math = Tests()
ee8d116 @dag README
authored Nov 11, 2010
11
5a009a6 @bradleyayers Use reStructuredText rather than markdown for README
bradleyayers authored Apr 23, 2012
12 @math.test
13 def arithmetics():
14 """Ensure that the laws of physics are in check."""
15 assert 1 + 1 == 2
ee8d116 @dag README
authored Nov 11, 2010
16
5a009a6 @bradleyayers Use reStructuredText rather than markdown for README
bradleyayers authored Apr 23, 2012
17 if __name__ == '__main__':
18 math.run()
ee8d116 @dag README
authored Nov 11, 2010
19
5a009a6 @bradleyayers Use reStructuredText rather than markdown for README
bradleyayers authored Apr 23, 2012
20
21
22 Features
23 ========
ee8d116 @dag README
authored Nov 11, 2010
24
1b17d19 @dag let's not throw dirt at others; we test more than units
authored May 20, 2011
25 * Collect tests using decorators instead of matching names against a regexp
26 * Set up fixtures as context managers that can be combined and reused
9642baa @dag github friendly readme
authored May 20, 2011
27 * Use the *assert* statement with arbitrary expressions that are inspected
1b17d19 @dag let's not throw dirt at others; we test more than units
authored May 20, 2011
28 on failure
29 * Scan for collections by type rather than by name
30 * Treat tests as Python packages rather than script files
Something went wrong with that request. Please try again.