Download:
child 64:ef5755f23a35
parent 62:ec4a88629c6e
63:c43e088b6aed
Anton Shestakov <av6@dwimlabs.net>, Thu, 23 Jun 2016 23:04:26 +0800
tests: test another regex in incoming (luacheck-style linter output)

1 файлов изменено, 8 вставок(+), 0 удалений(-) [+]
tests/test_incoming.py file | annotate | diff | comparison | revisions
--- a/tests/test_incoming.py Thu Jun 23 23:01:48 2016 +0800
+++ b/tests/test_incoming.py Thu Jun 23 23:04:26 2016 +0800
@@ -27,6 +27,14 @@
assert extra['filename'] == 'requirements.txt'
assert extra['fileline'] == 1
+ errors, warnings, extra = mlo('ham.lua:414:90: (E101) foo is not good')
+ assert errors == 1
+ assert warnings == 0
+ assert sorted(extra.keys()) == ['cls', 'fileline', 'filename']
+ assert extra['cls'] == 'error'
+ assert extra['filename'] == 'ham.lua'
+ assert extra['fileline'] == 414
+
def test_parse_project_url():
result = parse_project_url('https://example.com/alice/hello-world')