first commit
This commit is contained in:
14
code/system/tests.py
Normal file
14
code/system/tests.py
Normal file
@@ -0,0 +1,14 @@
|
||||
from django.test import TestCase
|
||||
|
||||
# Create your tests here.
|
||||
def debug(func):
|
||||
def wrapper():
|
||||
print("[DEBUG]: enter {}()".format(func.__name__))
|
||||
return func()
|
||||
return wrapper
|
||||
|
||||
@debug
|
||||
def hello():
|
||||
print("hello")
|
||||
|
||||
hello()
|
||||
Reference in New Issue
Block a user