1 | n/a | """Tests that run all fixer modules over an input stream. |
---|
2 | n/a | |
---|
3 | n/a | This has been broken out into its own test module because of its |
---|
4 | n/a | running time. |
---|
5 | n/a | """ |
---|
6 | n/a | # Author: Collin Winter |
---|
7 | n/a | |
---|
8 | n/a | # Python imports |
---|
9 | n/a | import unittest |
---|
10 | n/a | import test.support |
---|
11 | n/a | |
---|
12 | n/a | # Local imports |
---|
13 | n/a | from . import support |
---|
14 | n/a | |
---|
15 | n/a | |
---|
16 | n/a | @test.support.requires_resource('cpu') |
---|
17 | n/a | class Test_all(support.TestCase): |
---|
18 | n/a | |
---|
19 | n/a | def setUp(self): |
---|
20 | n/a | self.refactor = support.get_refactorer() |
---|
21 | n/a | |
---|
22 | n/a | def test_all_project_files(self): |
---|
23 | n/a | for filepath in support.all_project_files(): |
---|
24 | n/a | self.refactor.refactor_file(filepath) |
---|
25 | n/a | |
---|
26 | n/a | if __name__ == '__main__': |
---|
27 | n/a | unittest.main() |
---|