Skip to content

Commit

Permalink
Fix a regression causing some rodeo to not be tested.
Browse files Browse the repository at this point in the history
  • Loading branch information
ways committed Nov 25, 2024
1 parent cc6b7b2 commit 9cbb055
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
8 changes: 3 additions & 5 deletions sedr/preflight.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,9 @@ def parse_conformance(url: str, timeout: int, landing_json) -> bool:
return False

# Rodeo profile

if (
util.args.rodeo_profile
or rodeoprofile.conformance_url in conformance_json["conformsTo"]
):
if rodeoprofile.conformance_url in conformance_json["conformsTo"]:
util.args.rodeo_profile = True
if util.args.rodeo_profile:
util.logger.info(
"Including tests for Rodeo profile %s", rodeoprofile.conformance_url
)
Expand Down
3 changes: 1 addition & 2 deletions sedr/schemat.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
schema = None
extents = {}
collection_ids = {}
use_rodeoprofile = False


def set_up_schemathesis(args) -> BaseOpenAPISchema:
Expand Down Expand Up @@ -141,7 +140,7 @@ def test_edr_collections(case):
f"Unable to find extent for collection ID {collection['id']}. Found [{', '.join(collection.keys())}]. See {spec_ref} for more info."
) from err

if use_rodeoprofile:
if util.args.rodeo_profile:
if util.args.strict:
requirement7_3, requirement7_3_message = rodeoprofile.requirement7_3(
jsondata=collection
Expand Down

0 comments on commit 9cbb055

Please sign in to comment.