Загрузить файлы в «venv/Lib/site-packages/passlib/tests»

This commit is contained in:
2026-07-02 18:51:28 +00:00
parent 201790f7d7
commit 631066d9fa
5 changed files with 97 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
"""helper for method in test_registry.py"""
from passlib.registry import register_crypt_handler
import passlib.utils.handlers as uh
class dummy_bad(uh.StaticHandler):
name = "dummy_bad"
class alt_dummy_bad(uh.StaticHandler):
name = "dummy_bad"
# NOTE: if passlib.tests is being run from symlink (e.g. via gaeunit),
# this module may be imported a second time as test._test_bad_registry.
# we don't want it to do anything in that case.
if __name__.startswith("passlib.tests"):
register_crypt_handler(alt_dummy_bad)