Skip to content

Commit

Permalink
Revert "tests: disable failing tests"
Browse files Browse the repository at this point in the history
This reverts commit e243e97.
  • Loading branch information
pjonsson authored and omad committed Dec 4, 2023
1 parent c8e3854 commit 3483cf3
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
2 changes: 0 additions & 2 deletions integration_tests/test_eo3_support.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,6 @@ def test_all_eo3_pages_render(eo3_index: Index, client: FlaskClient):
assert_all_urls_render(find_examples_of_all_public_urls(eo3_index), client)


@pytest.mark.skip(reason="FIXME: JSON schema validation issues")
def test_can_search_eo3_items(eo3_index, client: FlaskClient):
"""
Searching returns lightweight item records, so the conversion code is different.
Expand All @@ -270,7 +269,6 @@ def test_can_search_eo3_items(eo3_index, client: FlaskClient):
] == pytest.approx(0.37)


@pytest.mark.skip(reason="FIXME: JSON schema validation issues")
def test_eo3_stac_item(eo3_index, client: FlaskClient):
# Load one stac dataset from the test data.
response = get_item(
Expand Down
10 changes: 0 additions & 10 deletions integration_tests/test_stac.py
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,6 @@ def stac_client(client: FlaskClient):
# Page requests


@pytest.mark.skip(reason="FIXME: JSON schema validation issues")
def test_stac_loading_all_pages(stac_client: FlaskClient):
# An unconstrained search returning every dataset.
# It should return every dataset in order with no duplicates.
Expand Down Expand Up @@ -614,7 +613,6 @@ def test_stac_links(stac_client: FlaskClient):
assert sorted(found_collection_ids) == sorted(tuple(expected_product_counts.keys()))


@pytest.mark.skip(reason="FIXME: JSON schema validation issues")
def test_arrivals_page_validation(stac_client: FlaskClient):
# Do the virtual 'arrivals' catalog and items validate?
response = get_json(stac_client, "/stac/catalogs/arrivals")
Expand All @@ -631,7 +629,6 @@ def test_arrivals_page_validation(stac_client: FlaskClient):
assert len(items["features"]) == OUR_PAGE_SIZE


@pytest.mark.skip(reason="FIXME: JSON schema validation issues")
def test_stac_collection(stac_client: FlaskClient):
"""
Follow the links to the "high_tide_comp_20p" collection and ensure it includes
Expand Down Expand Up @@ -715,7 +712,6 @@ def test_stac_collection(stac_client: FlaskClient):


# @pytest.mark.xfail()
@pytest.mark.skip(reason="FIXME: JSON schema validation issues")
def test_stac_item(stac_client: FlaskClient, odc_test_db):
# Load one stac dataset from the test data.

Expand Down Expand Up @@ -916,7 +912,6 @@ def dataset_url(s: str):
# Search tests


@pytest.mark.skip(reason="FIXME: JSON schema validation issues")
def test_stac_search_limits(stac_client: FlaskClient):
# Tell user with error if they request too much.
large_limit = OUR_DATASET_LIMIT + 1
Expand All @@ -943,7 +938,6 @@ def test_stac_search_zero(stac_client: FlaskClient):
assert rv.status_code == 200


@pytest.mark.skip(reason="FIXME: JSON schema validation issues")
def test_stac_includes_total(stac_client: FlaskClient):
geojson = get_items(
stac_client,
Expand All @@ -956,7 +950,6 @@ def test_stac_includes_total(stac_client: FlaskClient):
assert geojson.get("numberMatched") == 72


@pytest.mark.skip(reason="FIXME: JSON schema validation issues")
def test_stac_search_by_ids(stac_client: FlaskClient):
def geojson_feature_ids(d: Dict) -> List[str]:
return sorted(d.get("id") for d in geojson.get("features", {}))
Expand Down Expand Up @@ -1120,7 +1113,6 @@ def test_stac_search_by_intersects_paging(stac_client: FlaskClient):
}


@pytest.mark.skip(reason="FIXME: JSON schema validation issues")
def test_stac_search_collections(stac_client: FlaskClient):
"""Can you query a list of multiple collections?"""

Expand Down Expand Up @@ -1159,7 +1151,6 @@ def test_stac_search_collections(stac_client: FlaskClient):
assert len(geojson.get("features")) > 0


@pytest.mark.skip(reason="FIXME: JSON schema validation issues")
def test_stac_search_bounds(stac_client: FlaskClient):
# Outside the box there should be no results
geojson = get_items(
Expand Down Expand Up @@ -1198,7 +1189,6 @@ def test_stac_search_bounds(stac_client: FlaskClient):
assert len(geojson.get("features")) == 0


@pytest.mark.skip(reason="FIXME: JSON schema validation issues")
def test_stac_search_by_post(stac_client: FlaskClient):
# Test POST, product, and assets
rv: Response = stac_client.post(
Expand Down

0 comments on commit 3483cf3

Please sign in to comment.