forked from dailyerosion/dep
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
31 additions
and
0 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,25 @@ | ||
"""Test pydep.tillage.""" | ||
|
||
from pydep import tillage | ||
|
||
|
||
def test_simple(): | ||
"""Test import of API.""" | ||
plants = ["C", "B", "W", "P"] | ||
cfactors = list(range(1, 7)) | ||
zones = ["IA_NORTH", "IA_SOUTH", "KS_NORTH"] | ||
for bp in plants: | ||
for pp in plants: | ||
for ap in plants: | ||
for cfactor in cfactors: | ||
for zone in zones: | ||
res = tillage.make_tillage( | ||
0, zone, bp, pp, ap, cfactor, 1 | ||
) | ||
assert res is not None | ||
|
||
|
||
def test_unknown_file(): | ||
"""Test unknown file.""" | ||
res = tillage.make_tillage(0, "IA_NORTH", "q", "q", "q", 1, 1) | ||
assert res == "" |