def test_validate_item_reraise_exception(): test_item = request(EO_EXTENSION) del test_item["properties"]["datetime"] with pytest.raises(ValidationError): validate_item(test_item, reraise_exception=True)
def test_validate_item_rfc3339_with_partial_seconds(): test_item = request(EO_EXTENSION) test_item["properties"]["updated"] = "2018-10-01T01:08:32.033Z" assert validate_item(test_item)
def test_validate_item(): test_item = request(EO_EXTENSION) assert validate_item(test_item)