Download:
child 72:c6489ccdbd5b
parent 70:ff099617103f
71:6e9d9e772cf5
Anton Shestakov <av6@dwimlabs.net>, Sun, 26 Jun 2016 20:27:35 +0800
tests: test read_linter_config() from checker.py

1 файлов изменено, 12 вставок(+), 1 удалений(-) [+]
tests/test_checker.py file | annotate | diff | comparison | revisions
--- a/tests/test_checker.py Sun Jun 26 14:21:43 2016 +0800
+++ b/tests/test_checker.py Sun Jun 26 20:27:35 2016 +0800
@@ -1,4 +1,4 @@
-from checker import run
+from checker import run, read_linter_config
def test_run():
@@ -19,3 +19,14 @@
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