Staging
v0.5.1
https://github.com/python/cpython
Raw File
Tip revision: a7bf78d3eb3523572f7f306f0108e2c1b81e6a93 authored by Georg Brandl on 09 February 2014, 07:57:59 UTC
news entry
Tip revision: a7bf78d
test_all_fixers.py
"""Tests that run all fixer modules over an input stream.

This has been broken out into its own test module because of its
running time.
"""
# Author: Collin Winter

# Python imports
import unittest

# Local imports
from lib2to3 import refactor
from . import support


class Test_all(support.TestCase):

    def setUp(self):
        self.refactor = support.get_refactorer()

    def test_all_project_files(self):
        for filepath in support.all_project_files():
            self.refactor.refactor_file(filepath)
back to top