Skip to content

Commit c696448

Browse files
add test_kwarg_help
1 parent 418ff1f commit c696448

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

tests/test_kwarg_help.py

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
import os
2+
import os.path
3+
import glob
4+
import mplfinance as mpf
5+
6+
print('mpf.__version__ =',mpf.__version__) # for the record
7+
8+
9+
def test_kwarg_help():
10+
11+
functions = ['plot', 'make_addplot', 'make_marketcolors', 'make_mpf_style',
12+
'renko_params', 'pnf_params', 'lines', 'scale_width_adjustment',
13+
'update_width_config']
14+
15+
# just call `kwarg_help()` for each function,
16+
# and make sure there are no exceptions:
17+
18+
mpf.kwarg_help()
19+
20+
for func_name in functions:
21+
mpf.kwarg_help(func_name)
22+
23+
# now call with `sort=True` (again, just making sure no exceptions)
24+
25+
mpf.kwarg_help('plot',sort=True)
26+

0 commit comments

Comments
 (0)