def test_dataset_is_not_a_product(example_metadata: Dict): """ Datasets should not be identified as products (checks all example metadata files) """ assert not validate.is_product(example_metadata)
def test_is_product(): """Product documents should be correctly identified as products""" product = dict( name="minimal_product", metadata_type="eo3", measurements=[dict(name="blue")] ) assert validate.is_product(product)