Skip to content

Commit 786b32d

Browse files
committed
vector.nodata check re-added to cz status products.
1 parent 73710e8 commit 786b32d

3 files changed

Lines changed: 27 additions & 5 deletions

File tree

product_definitions/cz_2012.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,17 @@
141141
8410, 8420]]]
142142
}
143143
},
144+
{
145+
"check_ident": "qc_tool.vector.nodata",
146+
"required": false,
147+
"parameters": {
148+
"layers": ["status"],
149+
"nodata_column_name": "nodata_12",
150+
"nodata_value": 1,
151+
"dep_column_names": ["code_1_12", "code_2_12", "code_3_12", "code_4_12"],
152+
"dep_value": 0
153+
}
154+
},
144155
{
145156
"check_ident": "qc_tool.vector.singlepart",
146157
"required": false,

product_definitions/cz_2018.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,17 @@
141141
8410, 8420]]]
142142
}
143143
},
144+
{
145+
"check_ident": "qc_tool.vector.nodata",
146+
"required": false,
147+
"parameters": {
148+
"layers": ["status"],
149+
"nodata_column_name": "nodata_18",
150+
"nodata_value": 1,
151+
"dep_column_names": ["code_1_18", "code_2_18", "code_3_18", "code_4_18"],
152+
"dep_value": 0
153+
}
154+
},
144155
{
145156
"check_ident": "qc_tool.vector.singlepart",
146157
"required": false,

src/qc_tool/test/test_vector_product.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -122,9 +122,9 @@ def test_gpkg(self):
122122
self.assertListEqual(expected_step_results, step_results)
123123

124124
class Test_cz_2012(ProductTestCase):
125-
def test_gpkg(self):
125+
def test_gdb(self):
126126
filepath = TEST_DATA_DIR.joinpath("vector", "cz", "gdb", "CZ_2012_DU001_3035_V1_0.gdb.zip")
127-
expected_step_results = ["ok"] * 16
127+
expected_step_results = ["ok"] * 17
128128
# vector.inspire check is skipped
129129
expected_step_results[5] = "skipped"
130130

@@ -134,9 +134,9 @@ def test_gpkg(self):
134134
self.assertListEqual(expected_step_results, step_results)
135135

136136
class Test_cz_2018(ProductTestCase):
137-
def test_gpkg(self):
137+
def test_gdb(self):
138138
filepath = TEST_DATA_DIR.joinpath("vector", "cz", "gdb", "CZ_2018_DU001_3035_V1_0.gdb.zip")
139-
expected_step_results = ["ok"] * 16
139+
expected_step_results = ["ok"] * 17
140140
# vector.inspire check is skipped
141141
expected_step_results[5] = "skipped"
142142

@@ -146,7 +146,7 @@ def test_gpkg(self):
146146
self.assertListEqual(expected_step_results, step_results)
147147

148148
class Test_cz_change_2012_2018(ProductTestCase):
149-
def test_gpkg(self):
149+
def test_gdb(self):
150150
filepath = TEST_DATA_DIR.joinpath("vector", "cz", "gdb", "CZ_change_2012_2018_DU001_3035_V1_0.gdb.zip")
151151
expected_step_results = ["ok"] * 16
152152
# vector.inspire check is skipped

0 commit comments

Comments
 (0)