Arrange files like this:
apple/
__init__.py
apple.py
tests/
test_everything.py
| # original from: http://pythontesting.net/framework/pytest/pytest-expect-plugin-1 | |
| import pytest | |
| import inspect | |
| import os.path | |
| @pytest.fixture | |
| def expect(request): | |
| def do_expect(expr, msg=''): | |
| if not expr: | |
| _log_failure(request.node, msg) |
Arrange files like this:
apple/
__init__.py
apple.py
tests/
test_everything.py
| import pytest, sys | |
| sys.exit(pytest.main()) |
| Seed: 173015 | |
| 0 X 1 | |
| 1 X 1 | |
| 0 X 2 | |
| 1 X 1 | |
| 2 X 1 | |
| 1 X 1 | |
| 1 X 3 | |
| 2 X 2 |