mirror of
https://github.com/Wojtek242/pylg.git
synced 2024-12-23 15:14:39 +01:00
WIP
This commit is contained in:
parent
20e0c3219c
commit
383e851360
@ -2,7 +2,7 @@
|
||||
|
||||
"""
|
||||
|
||||
from pylg.pylg import TraceFunction, trace
|
||||
from pylg.pylg import PyLg, TraceFunction, trace
|
||||
|
||||
assert TraceFunction
|
||||
assert trace
|
||||
|
1
pylg/tests/custom.yml
Normal file
1
pylg/tests/custom.yml
Normal file
@ -0,0 +1 @@
|
||||
pylg_file: "tests/pylg.log"
|
@ -1,5 +1,12 @@
|
||||
from pylg import TraceFunction, trace
|
||||
from pylg import TraceFunction, trace, PyLg
|
||||
import sys
|
||||
|
||||
def test_load():
|
||||
print(sys.modules['__main__'].__file__)
|
||||
|
||||
PyLg.configure(user_settings_path="tests/custom.yml")
|
||||
|
||||
@TraceFunction
|
||||
def decorated_function():
|
||||
pass
|
||||
|
||||
decorated_function()
|
||||
|
Loading…
Reference in New Issue
Block a user