-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11 from bcdev/forman-break_node_traversal
Cancel node traversal
- Loading branch information
Showing
9 changed files
with
53 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,53 +1,17 @@ | ||
from unittest import TestCase | ||
|
||
expected_api = [ | ||
"AttrNode", | ||
"AttrsNode", | ||
"CliEngine", | ||
"Config", | ||
"ConfigList", | ||
"DataArrayNode", | ||
"DatasetNode", | ||
"EditInfo", | ||
"Formatter", | ||
"FormatterContext", | ||
"FormatterMeta", | ||
"FormatterOp", | ||
"FormatterRegistry", | ||
"Linter", | ||
"Message", | ||
"Node", | ||
"Plugin", | ||
"PluginMeta", | ||
"Processor", | ||
"ProcessorMeta", | ||
"ProcessorOp", | ||
"Result", | ||
"Rule", | ||
"RuleConfig", | ||
"RuleContext", | ||
"RuleMeta", | ||
"RuleOp", | ||
"RuleTest", | ||
"RuleTester", | ||
"Suggestion", | ||
"get_rules_meta_for_results", | ||
"new_linter", | ||
"version", | ||
] | ||
|
||
|
||
class AllTest(TestCase): | ||
def test_api_is_complete(self): | ||
import xrlint.all as xrl | ||
|
||
# noinspection PyProtectedMember | ||
from xrlint.all import __all__ | ||
|
||
# noinspection PyUnresolvedReferences | ||
keys = sorted( | ||
keys = set( | ||
k | ||
for k, v in xrl.__dict__.items() | ||
if isinstance(k, str) and not k.startswith("_") | ||
) | ||
self.assertEqual( | ||
expected_api, | ||
keys, | ||
) | ||
self.assertEqual(set(__all__), keys) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters