Hide keyboard shortcuts

Hot-keys on this page

r m x p   toggle line displays

j k   next/prev highlighted chunk

0   (zero) top of page

1   (one) first highlighted chunk

1import lcdoc.call_flows.call_flow_logging as cfl pytest

2from lcdoc.tools import dirname as d pytest

3from lcdoc.tools import os, project, write_file pytest

4 

5project.root({'docs_dir': d(d(__file__)) + '/docs'}) pytest

6assert 'tests' in os.listdir(project.root()) pytest

7 

8 

9def say_hello(name): pytest

10 print('hi ', name) 

11 return ['greeted', name] 

12 

13 

14def test_one(): pytest

15 d = project.root() + '/build/autodocs/tests/' pytest|tests.test_cfl.test_one

16 os.makedirs(d, exist_ok=True) pytest|tests.test_cfl.test_one

17 d += '/testlog.md' pytest|tests.test_cfl.test_one

18 write_file(d, '') pytest|tests.test_cfl.test_one

19 

20 @cfl.document(trace=say_hello, dest=d) pytest|tests.test_cfl.test_one

21 def runit(): 

22 res = say_hello('joe') 

23 

24 runit() pytest|tests.test_cfl.test_one