Ejemplo n.º 1
0
 def test_doctest_flag_disabled_include_dir_exclude_file(self):
     options = Options(builtins=None, doctests=False,
                       include_in_doctest='./',
                       exclude_from_doctest='./cookies.txt')
     FlakesChecker.parse_options(options)
     flake_checker = FlakesChecker(self.tree, './cookies.txt')
     assert flake_checker.withDoctest is False
Ejemplo n.º 2
0
 def test_doctest_flag_enabled(self):
     options = Options(builtins=None, doctests=True,
                       include_in_doctest='',
                       exclude_from_doctest='')
     FlakesChecker.parse_options(options)
     flake_checker = FlakesChecker(self.tree, 'cookies.txt')
     assert flake_checker.withDoctest is True
Ejemplo n.º 3
0
 def test_doctest_flag_disabled_include_dir_exclude_file(self):
     options = Options(builtins=None,
                       doctests=False,
                       include_in_doctest='./',
                       exclude_from_doctest='./cookies.txt')
     FlakesChecker.parse_options(options)
     flake_checker = FlakesChecker(self.tree, './cookies.txt')
     assert flake_checker.withDoctest is False
Ejemplo n.º 4
0
 def test_doctest_flag_enabled(self):
     options = Options(builtins=None,
                       doctests=True,
                       include_in_doctest='',
                       exclude_from_doctest='')
     FlakesChecker.parse_options(options)
     flake_checker = FlakesChecker(self.tree, 'cookies.txt')
     assert flake_checker.withDoctest is True
Ejemplo n.º 5
0
from __future__ import with_statement