Skip to content

Commit 035c8b9

Browse files
Fixed order of imports and dev environ
1 parent 805d38b commit 035c8b9

File tree

3 files changed

+11
-6
lines changed

3 files changed

+11
-6
lines changed

tests/test_bug.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,13 @@
33
"""
44
import unittest
55

6+
import os
7+
os.environ['DEVELOPMENT'] = 'True'
8+
69
from aquacrop import AquaCropModel, Soil, Crop, InitialWaterContent, GroundWater
710
from aquacrop.utils import prepare_weather, get_filepath
811

9-
import os
10-
os.environ['DEVELOPMENT'] = 'True'
12+
1113

1214

1315
class TestModelExceptions(unittest.TestCase):

tests/test_co2_timeseries.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,13 @@
33
"""
44
import unittest
55
import pandas as pd
6+
import os
7+
os.environ['DEVELOPMENT'] = 'True'
8+
69
from aquacrop import AquaCropModel, Soil, Crop, InitialWaterContent, GroundWater, CO2
710
from aquacrop.utils import prepare_weather, get_filepath
811

9-
import os
10-
os.environ['DEVELOPMENT'] = 'True'
12+
1113

1214
class TestModelExceptions(unittest.TestCase):
1315
"""

tests/test_groundwater_table.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,13 @@
22
Test exeptions in the model.
33
"""
44
import unittest
5+
import os
6+
os.environ['DEVELOPMENT'] = 'True'
57

68
from aquacrop import AquaCropModel, Soil, Crop, InitialWaterContent, GroundWater
79
from aquacrop.utils import prepare_weather, get_filepath
810

9-
import os
10-
os.environ['DEVELOPMENT'] = 'True'
11+
1112

1213

1314
class TestModelExceptions(unittest.TestCase):

0 commit comments

Comments
 (0)