Ejemplo n.º 1
0
def factory(register):
    checks.factory(register)
    register(check_opendaylight_lowercase)
    register(check_opendaylight_lowercase_comment)
    register(check_opendaylight_lowercase_string)
    register(check_opendaylight_lowercase_docstring)
    register(check_config_over_set_override)
Ejemplo n.º 2
0
def factory(register):
    checks.factory(register)
    register(check_opendaylight_lowercase)
    register(check_opendaylight_lowercase_comment)
    register(check_opendaylight_lowercase_string)
    register(check_opendaylight_lowercase_docstring)
    register(check_config_over_set_override)
    register(check_config_over_direct_override)
    register(check_redundant_import_alias)
Ejemplo n.º 3
0
def factory(register):
    checks.factory(register)
    register(check_assert_called_once_with)
    register(check_asserttruefalse)
    register(check_assertempty)
    register(check_assertisinstance)
    register(check_assertequal_for_httpcode)
    register(check_oslo_i18n_wrapper)
    register(check_builtins_gettext)
    register(check_no_imports_from_tests)
    register(check_python3_no_filter)
    register(check_no_sqlalchemy_event_import)
Ejemplo n.º 4
0
def factory(register):
    checks.factory(register)
    register(check_assert_called_once_with)
    register(check_asserttruefalse)
    register(check_assertempty)
    register(check_assertisinstance)
    register(check_assertequal_for_httpcode)
    register(check_oslo_i18n_wrapper)
    register(check_builtins_gettext)
    register(check_unittest_imports)
    register(check_no_imports_from_tests)
    register(check_python3_no_filter)
    register(check_no_sqlalchemy_event_import)
Ejemplo n.º 5
0
def factory(register):
    register(no_log_warn)
    register(no_os_popen)
    checks.factory(register)
Ejemplo n.º 6
0
def factory(register):
    checks.factory(register)
    register(check_opendaylight_lowercase)
    register(check_opendaylight_lowercase_comment)
    register(check_opendaylight_lowercase_string)
    register(check_opendaylight_lowercase_docstring)
Ejemplo n.º 7
0
 def test_factory(self):
     def check_callable(fn):
         self.assertTrue(hasattr(fn, '__call__'))
     self.assertIsNone(checks.factory(check_callable))