Skip to content

Commit 757ce18

Browse files
committed
FIX weekly test to check all mtd against etree._Element type
1 parent b128bf2 commit 757ce18

1 file changed

Lines changed: 1 addition & 8 deletions

File tree

ci/weekly/test_satellites.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@
5252
from eoreader.keywords import SLSTR_RAD_ADJUST
5353
from eoreader.products import Product, S2Product, SensorType, SlstrRadAdjust
5454
from eoreader.products.product import OrbitDirection
55-
from eoreader.reader import Constellation
5655

5756
LOGGER = logging.getLogger(EOREADER_NAME)
5857

@@ -117,13 +116,7 @@ def check_product_consistency(prod: Product):
117116
# Load MTD
118117
LOGGER.info("Checking Mtd")
119118
mtd_xml, nmsp = prod.read_mtd()
120-
if not (
121-
prod.constellation == Constellation.S1 and prod.product_type.value == "RTC"
122-
):
123-
assert isinstance(mtd_xml, etree._Element)
124-
else:
125-
assert mtd_xml is None
126-
119+
assert isinstance(mtd_xml, etree._Element)
127120
assert isinstance(nmsp, dict)
128121

129122
# Mean sun angle type, cloud cover...

0 commit comments

Comments
 (0)