Skip to content

Commit ce4cadc

Browse files
jirhikeractions-user
authored andcommitted
Formatting changes
1 parent b4764e4 commit ce4cadc

1 file changed

Lines changed: 30 additions & 24 deletions

File tree

tests/mvp.py

Lines changed: 30 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
# limitations under the License.
1515
# ===============================================================================
1616

17+
1718
def test_add_location_minimum():
1819
location = {
1920
"name": "Test Location 1",
@@ -26,7 +27,7 @@ def test_add_location_all():
2627
location = {
2728
"name": "Test Location 1",
2829
"point": "POINT(10.1 10.1)",
29-
"description": 'this is a test location',
30+
"description": "this is a test location",
3031
"visible": True,
3132
}
3233

@@ -48,11 +49,12 @@ def test_add_well_all():
4849
"hole_depth": 100.0,
4950
"casing_diameter": 10.0,
5051
"casing_depth": 20.0,
51-
"casing_description": 'foo bar',
52-
"formation_zone": 'San Andres',
52+
"casing_description": "foo bar",
53+
"formation_zone": "San Andres",
5354
"construction_notes": "this is a test of notes",
5455
}
5556

57+
5658
def test_add_well_screen_minimum():
5759
well_screen = {
5860
"well_id": 1,
@@ -66,7 +68,7 @@ def test_add_well_screen_all():
6668
"well_id": 1,
6769
"screen_depth_top": 100.0,
6870
"screen_depth_bottom": 120.0,
69-
"screen_type": "PVC"
71+
"screen_type": "PVC",
7072
}
7173

7274

@@ -85,31 +87,33 @@ def test_add_owner_with_contacts():
8587

8688

8789
def test_add_owner_without_contacts():
88-
owner = {
89-
"name": "Alice Bob"
90-
}
90+
owner = {"name": "Alice Bob"}
91+
9192

9293
def test_add_asset():
9394
asset = {
94-
'filename': 'foo.png',
95-
'storage_service': 'gcs',
96-
'storage_path': 'gs://...',
97-
'mime_type': 'image/png',
98-
'size': 100,
95+
"filename": "foo.png",
96+
"storage_service": "gcs",
97+
"storage_path": "gs://...",
98+
"mime_type": "image/png",
99+
"size": 100,
99100
}
100101

101102

102103
# ============== optional ? =============
103104
def test_add_lexicon():
104105
formation = {
105-
'term': 'San Andres',
106-
'definition': 'Some sandstone unit',
107-
'category': 'Formations'
106+
"term": "San Andres",
107+
"definition": "Some sandstone unit",
108+
"category": "Formations",
109+
}
110+
111+
unit = {
112+
"term": "TDS",
113+
"definition": "Total Dissolved Solids",
114+
"category": "water_chemistry",
108115
}
109116

110-
unit = {"term": "TDS",
111-
"definition": "Total Dissolved Solids",
112-
"category": "water_chemistry"}
113117

114118
def test_add_lexicon_triple():
115119
subject = {
@@ -124,19 +128,21 @@ def test_add_lexicon_triple():
124128
"category": "location_identifier",
125129
}
126130

131+
127132
def test_add_lexicon_triple_existing_subject():
128-
subject = 'TDS'
133+
subject = "TDS"
129134
predicate = "same_as"
130135
object_ = {
131-
"term": 'Total Dissolved Solids',
132-
"definition": 'all the solids dissolved in sample',
133-
"category": "water_chemistry"
136+
"term": "Total Dissolved Solids",
137+
"definition": "all the solids dissolved in sample",
138+
"category": "water_chemistry",
134139
}
135140

141+
136142
def test_add_lexicon_triple_existing():
137-
subject = 'TDS'
143+
subject = "TDS"
138144
predicate = "same_as"
139-
object_ = 'Total Dissolved Solids'
145+
object_ = "Total Dissolved Solids"
140146

141147

142148
# ============= EOF =============================================

0 commit comments

Comments
 (0)