-
-
Notifications
You must be signed in to change notification settings - Fork 309
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
grassTask.get_param(): full match also for strings (#3582)
* script.task: Create test file grassTask.get_param() Co-authored-by: Edouard Choinière <[email protected]>
- Loading branch information
Showing
2 changed files
with
11 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
from grass.script.task import grassTask as gtask | ||
|
||
|
||
def test_mapcalc_simple_e_name(): | ||
gt = gtask("r.mapcalc.simple") | ||
assert gt.get_param("e")["name"] == "e" | ||
|
||
|
||
def test_mapcalc_simple_expession_name(): | ||
gt = gtask("r.mapcalc.simple") | ||
assert gt.get_param("expression")["name"] == "expression" |