コード例 #1
0
ファイル: tests.py プロジェクト: djabber/Dashboard
 def test_01_autodiscover(self):
     """
     Test ``autodiscover``.
     """
     autodiscover()
     self.assertTrue(len(registry._registry) > 0)
コード例 #2
0
ファイル: utils.py プロジェクト: atjandra001/fintech
def ensure_autodiscover():
    """Ensure the IP checkers are auto-discovered."""
    if not registry.registry:
        autodiscover()