Skip to content

Commit b5c6303

Browse files
committed
Added skipif to test_createservice.py methods
1 parent a653edd commit b5c6303

File tree

2 files changed

+28
-20
lines changed

2 files changed

+28
-20
lines changed

tests/test_odm2/test_createservice.py

+27-19
Original file line numberDiff line numberDiff line change
@@ -113,27 +113,32 @@ def test_createVariable(self):
113113
assert(res[5] == speciation) # speciation
114114
assert(res[6] == nodv ) # nodata
115115

116-
117-
116+
@pytest.mark.skipif(True, reason="implement")
118117
def test_createMethod(self):
119118
pass
120119

120+
@pytest.mark.skipif(True, reason="implement")
121121
def test_createProcessingLevel(self):
122-
pass
122+
pass
123123

124+
@pytest.mark.skipif(True, reason="implement")
124125
def test_createSamplingFeature(self):
125126
pass
126127

128+
@pytest.mark.skipif(True, reason="implement")
127129
def test_createUnit(self):
128130
pass
129-
131+
132+
@pytest.mark.skipif(True, reason="implement")
130133
def test_createOrganization(self):
131-
pass
134+
pass
132135

136+
@pytest.mark.skipif(True, reason="implement")
133137
def test_createPerson(self):
134138
pass
135139

136-
def test_createAffiliation(self):
140+
@pytest.mark.skipif(True, reason="implement")
141+
def test_createAffiliation(self):
137142
pass
138143

139144
def test_createDataset(self):
@@ -156,16 +161,19 @@ def test_createDataset(self):
156161
res = self.engine.execute('SELECT * from DataSets')
157162
assert(len(res.fetchall()) == 1)
158163

159-
164+
@pytest.mark.skipif(True, reason="implement")
160165
def test_createDatasetResults(self):
161166
pass
162-
167+
168+
@pytest.mark.skipif(True, reason="implement")
163169
def test_createAction(self):
164170
pass
165171

166-
def test_createActionBy(self):
172+
@pytest.mark.skipif(True, reason="implement")
173+
def test_createActionBy(self):
167174
pass
168-
175+
176+
@pytest.mark.skipif(True, reason="implement")
169177
def test_createFeatureAction(self):
170178
pass
171179

@@ -213,28 +221,28 @@ def test_createTimeSeriesResult(self):
213221
# assert that this basic tsr exists in the datbase
214222
res = self.engine.execute('SELECT * FROM TimeSeriesResults').first()
215223
assert(res is not None)
216-
217-
218224

225+
@pytest.mark.skipif(True, reason="implement")
219226
def test_createTimeSeriesResultValues(self):
220227
pass
221228

222-
223-
def test_createSite(self):
229+
@pytest.mark.skipif(True, reason="implement")
230+
def test_createSite(self):
224231
pass
225232

226-
227-
def test_createSpatialReference(self):
233+
@pytest.mark.skipif(True, reason="implement")
234+
def test_createSpatialReference(self):
228235
pass
229236

230-
def test_createDeploymentAction(self):
237+
@pytest.mark.skipif(True, reason="implement")
238+
def test_createDeploymentAction(self):
231239
pass
232240

233-
241+
@pytest.mark.skipif(True, reason="implement")
234242
def test_createModel(self):
235243
pass
236244

237-
245+
@pytest.mark.skipif(True, reason="implement")
238246
def test_createRelatedModel(self):
239247
pass
240248

tests/test_odm2/test_odm2.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def fin():
7070

7171
return dbConn
7272

73-
@pytest.mark.skipif(True, reason="Enable for testing: CreateService Session closes on failed create #52")
73+
#@pytest.mark.skipif(True, reason="Enable for testing: CreateService Session closes on failed create #52")
7474
def test_SessionNotFailed(setup):
7575
# goal of this is to see that if we force errors like a null value, or duplicate that the session does not fail
7676

0 commit comments

Comments
 (0)