tools: Moved TOOLS_FOR_EXTENSIONS into tools.toml

- Now a tool can be added/removed by editing one file.
This commit is contained in:
Andrew Hamilton 2018-05-18 13:04:08 +10:00
parent 915eac35ba
commit f414cc4a96
3 changed files with 31 additions and 30 deletions

View file

@ -218,7 +218,7 @@ class ToolsTestCase(unittest.TestCase):
self._test_tool(tools.php7_syntax, [("root.php", tools.Status.ok)])
def test_pil(self):
for extension in tools.IMAGE_EXTENSIONS:
for extension in ["png", "jpg", "gif", "bmp", "ppm", "tiff", "tga"]:
self._test_tool(tools.pil, [("circle." + extension,
tools.Status.normal)])