74:e0a1f3f2a7a3
Anton Shestakov <av6@dwimlabs.net>, Tue, 28 Jun 2016 22:36:05 +0800
viewer: restyle regular badges to be a bit more like status badges In practice, it means: no border, 3px rounded corners and more pronounced text shadow.

next change 130:7a9e1f1ae89f
previous change 71:6e9d9e772cf5

tests/test_checker.py

Permissions: -rw-r--r--

Other formats: Feeds:
from checker import run, read_linter_config
def test_run():
result = run(['true'])
assert result is True
result = run(['false'])
assert result is False
result = run(['false'], ignore_codes=(1,))
assert result is True
result = run(['false'], ignore_codes=(127,))
assert result is False
result = run(['echo', 'hi'], get_output=False)
assert result is True
result = run(['echo', 'hi'], get_output=True)
assert result == 'hi\n'
def test_read_linter_config():
config = read_linter_config('flake8')
assert config is not None
assert 'exec' in config
assert 'setup' in config
assert len(config['setup']) > 0
config = read_linter_config('perfectlinter')
assert config is None