This commit is contained in:
Wojciech Kozlowski 2020-04-12 18:22:10 +02:00
parent 20e0c3219c
commit 383e851360
3 changed files with 11 additions and 3 deletions

View File

@ -2,7 +2,7 @@
""" """
from pylg.pylg import TraceFunction, trace from pylg.pylg import PyLg, TraceFunction, trace
assert TraceFunction assert TraceFunction
assert trace assert trace

1
pylg/tests/custom.yml Normal file
View File

@ -0,0 +1 @@
pylg_file: "tests/pylg.log"

View File

@ -1,5 +1,12 @@
from pylg import TraceFunction, trace from pylg import TraceFunction, trace, PyLg
import sys import sys
def test_load(): def test_load():
print(sys.modules['__main__'].__file__)
PyLg.configure(user_settings_path="tests/custom.yml")
@TraceFunction
def decorated_function():
pass
decorated_function()