8000 Add Py.test testing framework support by Kojoley · Pull Request #6730 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content

Add Py.test testing framework support #6730

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 10 commits into from
Aug 23, 2016
Prev Previous commit
Next Next commit
Added --no-pep8 key for pytest
  • Loading branch information
Kojoley committed Aug 21, 2016
commit dadeac96d567e0262b5af0d66b26e41246a8e94f
7 changes: 7 additions & 0 deletions conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,18 @@ def pytest_addoption(parser):
choices=COLLECT_FILTERS, default='blacklist',
help='filter tests during collection phase')

group.addoption('--no-pep8', action='store_true',
help='skip PEP8 compliance tests')


def pytest_configure(config):
matplotlib._called_from_pytest = True
matplotlib._init_tests()

if config.getoption('--no-pep8'):
default_test_modules.remove('matplotlib.tests.test_coding_standards')
IGNORED_TESTS['matplotlib'] += 'test_coding_standards'


def pytest_unconfigure(config):
matplotlib._called_from_pytest = False
Expand Down
0