Anton Shestakov <av6@dwimlabs.net>, Wed, 30 May 2018 18:20:33 +0800
requirements: peewee 3.5.0
Moving +1 to select clause because "<query> + x" is now interpreted as "<query>
UNION ALL x".
Database.create_tables() now defaults to safe=True.
tests/test_checker.py
Permissions: -rw-r--r--
from checker import run, read_linter_config, prevalidate result = run(['false'], ignore_codes=(1,)) result = run(['false'], ignore_codes=(127,)) result = run(['echo', 'hi'], get_output=False) result = run(['echo', 'hi'], get_output=True) def test_read_linter_config(): config = read_linter_config('flake8') assert config is not None assert len(config['setup']) > 0 config = read_linter_config('perfectlinter') assert not prevalidate({}) config = {'scm': 'fossil', 'url': 'http://www.fossil-scm.org/'} assert not prevalidate(config) config = {'scm': 'hg', 'url': 'https://selenic.com/hg'} assert prevalidate(config)