-
-
Notifications
You must be signed in to change notification settings - Fork 398
pygrass: add get_json_dict function #2937
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 10 commits
46dad7c
7015985
d8933b6
b62eb04
26d2684
561353c
17ff69f
949e84d
e4af988
0ee415a
63bf42e
27f49fb
fe3de57
4eb76a0
9239679
22527b0
47c3b2f
2046e3e
9ab7c64
0dae970
e4888e6
851b28f
d0feda9
baec08c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -53,6 +53,44 @@ def test_rsun(self): | |
| out.close() | ||
|
|
||
|
|
||
| class TestModulesJsonDictExport(TestCase): | ||
|
||
| def test_rinfo_simple(self): | ||
| """Test if a Module can be exported to json dict""" | ||
|
|
||
| Module("r.info", map="elevation", run_=False).get_json_dict() | ||
|
|
||
| def test_rinfo_ov(self): | ||
| """Test if a Module can be exported to json dict with verbose flag""" | ||
|
|
||
| Module("r.info", verbose=True, map="elevation", run_=False).get_json_dict() | ||
|
|
||
| def test_rinfo_ov_export(self): | ||
| """Test if a Module can be exported to json dict with overwrite | ||
| and verbose flags and results exported to CSV""" | ||
|
|
||
| Module( | ||
| "r.info", | ||
| verbose=True, | ||
| map="elevation", | ||
| flags="g", | ||
| run_=False, | ||
| ).get_json_dict(export="CSV") | ||
|
|
||
| def test_rslopeaspect_ov_export(self): | ||
| """Test if a Module can be exported to json dict with overwrite | ||
| and verbose flags and results exported to CSV""" | ||
|
|
||
| Module( | ||
| "r.slope.aspect", | ||
| elevation="elevation", | ||
| slope="slope", | ||
| aspect="aspect", | ||
| overwrite=True, | ||
| verbose=True, | ||
| run_=False, | ||
| ).get_json_dict(export="GTiff") | ||
|
||
|
|
||
|
|
||
| class TestModulesCheck(TestCase): | ||
| def test_flags_with_suppress_required(self): | ||
| """Test if flags with suppress required are handle correctly""" | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.