File tree Expand file tree Collapse file tree 3 files changed +34
-22
lines changed Expand file tree Collapse file tree 3 files changed +34
-22
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,16 @@ def test_earthkit_geo_import():
20
20
from earthkit .geo import nearest_point_kdtree # noqa
21
21
22
22
23
+ def test_earthkit_transforms_import ():
24
+ import earthkit .transforms # noqa
25
+ from earthkit .transforms import aggregate # noqa
26
+
27
+
28
+ def test_earthkit_hydro_import ():
29
+ import earthkit .hydro # noqa
30
+ from earthkit .hydro import river_network # noqa
31
+
32
+
23
33
def test_earthkit_meteo_import ():
24
34
import earthkit .meteo # noqa
25
35
from earthkit .meteo import thermo # noqa
@@ -38,13 +48,3 @@ def test_earthkit_regrid_import():
38
48
def test_earthkit_time_import ():
39
49
import earthkit .time # noqa
40
50
from earthkit .time import DailySequence # noqa
41
-
42
-
43
- def test_earthkit_transforms_import ():
44
- import earthkit .transforms # noqa
45
- from earthkit .transforms import aggregate # noqa
46
-
47
-
48
- def test_earthkit_hydro_import ():
49
- import earthkit .hydro # noqa
50
- from earthkit .hydro import river_network # noqa
Original file line number Diff line number Diff line change @@ -34,6 +34,18 @@ def test_earthkit_geo_obj_2():
34
34
assert callable (geo .nearest_point_kdtree )
35
35
36
36
37
+ def test_earthkit_hydro_obj_1 ():
38
+ import earthkit .hydro
39
+
40
+ assert callable (earthkit .hydro .river_network .load )
41
+
42
+
43
+ def test_earthkit_hydro_obj_2 ():
44
+ from earthkit import hydro
45
+
46
+ assert callable (hydro .river_network .load )
47
+
48
+
37
49
def test_earthkit_meteo_obj_1 ():
38
50
import earthkit .meteo
39
51
@@ -94,15 +106,3 @@ def test_earthkit_transforms_obj_2():
94
106
from earthkit import transforms
95
107
96
108
assert callable (transforms .aggregate .spatial .masks )
97
-
98
-
99
- def test_earthkit_hydro_obj_1 ():
100
- import earthkit .hydro
101
-
102
- assert callable (earthkit .hydro .river_network .load )
103
-
104
-
105
- def test_earthkit_hydro_obj_2 ():
106
- from earthkit import hydro
107
-
108
- assert callable (hydro .river_network .load )
Original file line number Diff line number Diff line change @@ -48,6 +48,18 @@ def test_earthkit_geo_version_2():
48
48
assert VERSION_RX .match (geo .__version__ ) is not None
49
49
50
50
51
+ def test_earthkit_hydro_version_1 ():
52
+ import earthkit .hydro # noqa
53
+
54
+ assert VERSION_RX .match (earthkit .hydro .__version__ ) is not None
55
+
56
+
57
+ def test_earthkit_hydro_version_2 ():
58
+ from earthkit import hydro # noqa
59
+
60
+ assert VERSION_RX .match (hydro .__version__ ) is not None
61
+
62
+
51
63
def test_earthkit_meteo_version_1 ():
52
64
import earthkit .meteo # noqa
53
65
You can’t perform that action at this time.
0 commit comments