queennoxililly / test_decorator.py
Alexainc
Initial QueenNoxi Build (Fresh Rebrand)
2362a2a
Raw
History Blame Contribute Delete
493 Bytes
import sys
import os
# Add project root to sys.path
sys.path.append(os.getcwd())
from QueenNoxi.modules.disable import DisableAbleCommandHandler
print(f"DisableAbleCommandHandler: {DisableAbleCommandHandler}")
def test_func(client, message):
pass
try:
decorator = DisableAbleCommandHandler(["notes", "saved"])
print(f"Decorator created: {decorator}")
wrapped = decorator(test_func)
print(f"Wrapped function: {wrapped}")
except Exception as e:
print(f"Error: {e}")