File tree Expand file tree Collapse file tree 2 files changed +12
-12
lines changed Expand file tree Collapse file tree 2 files changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -36,3 +36,5 @@ addopts = [
3636 " --verbose" ,
3737 " --color=yes" ,
3838]
39+ [project .scripts ]
40+ fates-landusedata = " landusedata._main:main"
Original file line number Diff line number Diff line change 55from landusedata ._main import main
66
77# TODO: parameterize this
8- def test_main (capsys ):
9- """
10- Postive case testing for choice input
11- Note that the regridfile is a global argument to all landusedata subcommands
12- and thus must come last.
13- """
14- statefile = 'statefile'
15- regridfile = 'regridfile'
16- main (['luh2' ,statefile ,regridfile ])
17- out , err = capsys .readouterr ()
18- assert out == 'calling luh2 code: {},{}\n ' .format (regridfile ,statefile )
19- assert err == ''
8+ # def test_main_luh2(capsys):
9+ # """
10+ # Postive case testing for choice input
11+ # Note that the regridfile is a global argument to all landusedata subcommands
12+ # and thus must come last.
13+ # """
14+ # main(['luh2'])
15+ # out, err = capsys.readouterr()
16+ # assert out == 'calling luh2 code: {},{}\n'.format(regridfile,statefile)
17+ # assert err == ''
2018
2119def test_main_neg (capsys ):
2220 """
You can’t perform that action at this time.
0 commit comments