def setUp(self):
     TestCase.setUp(self)
     warnings.filterwarnings("ignore",
                             r"CryptContext\(\)\.replace\(\) has been deprecated.*")
     warnings.filterwarnings("ignore",
                             r"The CryptContext ``policy`` keyword has been deprecated.*")
     warnings.filterwarnings("ignore", ".*(CryptPolicy|context\.policy).*(has|have) been deprecated.*")
 def setUp(self):
     TestCase.setUp(self)
     warnings.filterwarnings("ignore",
                             r"The CryptPolicy class has been deprecated")
     warnings.filterwarnings(
         "ignore", r"the method.*hash_needs_update.*is deprecated")
     warnings.filterwarnings("ignore", "The 'all' scheme is deprecated.*")
     warnings.filterwarnings("ignore", "bsdi_crypt rounds should be odd")
Exemplo n.º 3
0
 def setUp(self):
     TestCase.setUp(self)
     warnings.filterwarnings("ignore",
                             r"The CryptPolicy class has been deprecated")
     warnings.filterwarnings("ignore",
                             r"the method.*hash_needs_update.*is deprecated")
     warnings.filterwarnings("ignore", "The 'all' scheme is deprecated.*")
     warnings.filterwarnings("ignore", "bsdi_crypt rounds should be odd")
Exemplo n.º 4
0
 def setUp(self):
     TestCase.setUp(self)
     warnings.filterwarnings("ignore",
                             r"CryptContext\(\)\.replace\(\) has been deprecated.*")
     warnings.filterwarnings("ignore",
                             r"The CryptContext ``policy`` keyword has been deprecated.*")
     warnings.filterwarnings("ignore", ".*(CryptPolicy|context\.policy).*(has|have) been deprecated.*")
     warnings.filterwarnings("ignore",
                             r"the method.*hash_needs_update.*is deprecated")
Exemplo n.º 5
0
    def setUp(self):
        TestCase.setUp(self)

        # make sure this isn't registered before OR after
        unload_handler_name("dummy_2")
        self.addCleanup(unload_handler_name, "dummy_2")

        # silence some warnings
        warnings.filterwarnings("ignore",
                                r"CryptContext\(\)\.replace\(\) has been deprecated")
        warnings.filterwarnings("ignore", ".*(CryptPolicy|context\.policy).*(has|have) been deprecated.*")
Exemplo n.º 6
0
    def setUp(self):
        TestCase.setUp(self)

        # make sure this isn't registered before OR after
        unload_handler_name("dummy_2")
        self.addCleanup(unload_handler_name, "dummy_2")

        # silence some warnings
        warnings.filterwarnings("ignore",
                                r"CryptContext\(\)\.replace\(\) has been deprecated")
        warnings.filterwarnings("ignore", ".*(CryptPolicy|context\.policy).*(has|have) been deprecated.*")
Exemplo n.º 7
0
 def setUp(self):
     TestCase.setUp(self)
     warnings.filterwarnings("ignore",
                             r"The CryptPolicy class has been deprecated")
     warnings.filterwarnings(
         "ignore", r"the method.*hash_needs_update.*is deprecated")
 def setUp(self):
     TestCase.setUp(self)
     warnings.filterwarnings("ignore",
                             r"The CryptPolicy class has been deprecated")
Exemplo n.º 9
0
 def setUp(self):
     TestCase.setUp(self)
     warnings.filterwarnings("ignore",
                             r"The CryptPolicy class has been deprecated")
     warnings.filterwarnings("ignore",
                             r"the method.*hash_needs_update.*is deprecated")