test_all_fixers.py 595 B

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