Skip to content

Conversation

@elichad
Copy link

@elichad elichad commented Jan 5, 2026

  • corrects two checks which assert that certain phases have object pointing to the RDE
  • adds tests which see if all RECOMMENDED checks pass so similar errors to the checks above will be flagged in future
  • allows do_entity_test to accept arbitrary validation settings so the tests above can work (will also PR this upstream)

sh:name "object" ;
sh:path schema:object ;
sh:minCount 1 ;
sh:hasValue ro-crate:RootDataEntity ;
Copy link
Author

@elichad elichad Jan 5, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This snuck through the tests as it only fails the valid crate at RECOMMENDED level - which we don't test for (same for the Validation Phase check below). It turns out to be hard to test - see crs4#135, I'm trying to put together another PR to get those tests in never mind, it's included here now

# There SHOULD be a Sign-Off Phase
five-safes-crate:SignOffPhase
a sh:NodeShape ;
sh:targetNode <./> ;
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is just a style change really as in 5SROC the RDE should always be <./> - but the change makes it a bit more robust and aligned with the rest of our checks

@elichad elichad changed the title Small SHACL fixes Small SHACL fixes; test RECOMMENDED checks on valid crates Jan 5, 2026
Comment on lines +55 to +61
@pytest.mark.xfail(
reason="""
Checks that ensure certain Five Safes actions are present currently fail for this crate,
as this crate represents an early stage of a process before those actions have happened.
"""
)
def test_valid_five_safes_crate_request_recommended():
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we don't strictly need to include this test since it fails right now. But if/when we manage to implement dynamic enabling of phase-specific checks, this will eventually pass

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants