mirror of
https://github.com/Wojtek242/pylg.git
synced 2024-11-23 16:15:25 +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 TraceFunction
|
||||||
assert trace
|
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
|
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()
|
||||||
|
Loading…
Reference in New Issue
Block a user