mirror of
https://we.phorge.it/source/arcanist.git
synced 2024-12-22 05:20:55 +01:00
Add unit tests for ArcanistPylintLinter
.
Summary: Self-explanatory. Test Plan: Ran the tests. Reviewers: epriestley, #blessed_reviewers Reviewed By: epriestley, #blessed_reviewers Subscribers: epriestley, Korvin Differential Revision: https://secure.phabricator.com/D9661
This commit is contained in:
parent
4f96a23485
commit
60d879fc8c
3 changed files with 21 additions and 0 deletions
|
@ -147,6 +147,7 @@ phutil_register_library_map(array(
|
|||
'ArcanistPyFlakesLinter' => 'lint/linter/ArcanistPyFlakesLinter.php',
|
||||
'ArcanistPyFlakesLinterTestCase' => 'lint/linter/__tests__/ArcanistPyFlakesLinterTestCase.php',
|
||||
'ArcanistPyLintLinter' => 'lint/linter/ArcanistPyLintLinter.php',
|
||||
'ArcanistPyLintLinterTestCase' => 'lint/linter/__tests__/ArcanistPyLintLinterTestCase.php',
|
||||
'ArcanistRepositoryAPI' => 'repository/api/ArcanistRepositoryAPI.php',
|
||||
'ArcanistRepositoryAPIMiscTestCase' => 'repository/api/__tests__/ArcanistRepositoryAPIMiscTestCase.php',
|
||||
'ArcanistRepositoryAPIStateTestCase' => 'repository/api/__tests__/ArcanistRepositoryAPIStateTestCase.php',
|
||||
|
@ -321,6 +322,7 @@ phutil_register_library_map(array(
|
|||
'ArcanistPyFlakesLinter' => 'ArcanistExternalLinter',
|
||||
'ArcanistPyFlakesLinterTestCase' => 'ArcanistArcanistLinterTestCase',
|
||||
'ArcanistPyLintLinter' => 'ArcanistLinter',
|
||||
'ArcanistPyLintLinterTestCase' => 'ArcanistArcanistLinterTestCase',
|
||||
'ArcanistRepositoryAPIMiscTestCase' => 'ArcanistTestCase',
|
||||
'ArcanistRepositoryAPIStateTestCase' => 'ArcanistTestCase',
|
||||
'ArcanistRevertWorkflow' => 'ArcanistBaseWorkflow',
|
||||
|
|
12
src/lint/linter/__tests__/ArcanistPyLintLinterTestCase.php
Normal file
12
src/lint/linter/__tests__/ArcanistPyLintLinterTestCase.php
Normal file
|
@ -0,0 +1,12 @@
|
|||
<?php
|
||||
|
||||
final class ArcanistPyLintLinterTestCase
|
||||
extends ArcanistArcanistLinterTestCase {
|
||||
|
||||
public function testPyLintLinter() {
|
||||
return $this->executeTestsInDirectory(
|
||||
dirname(__FILE__).'/pylint/',
|
||||
new ArcanistPyLintLinter());
|
||||
}
|
||||
|
||||
}
|
7
src/lint/linter/__tests__/pylint/pylint.lint-test
Normal file
7
src/lint/linter/__tests__/pylint/pylint.lint-test
Normal file
|
@ -0,0 +1,7 @@
|
|||
import sys, os
|
||||
|
||||
x += 1
|
||||
~~~~~~~~~~
|
||||
warning:1:0
|
||||
advice:1:0
|
||||
error:3:0
|
Loading…
Reference in a new issue