Skip to content

sanitizing json2jsonld serialization and fixing failing tests resulti…#617

Merged
proccaserra merged 2 commits intordf-testfrom
rdf-test-fix
Mar 13, 2026
Merged

sanitizing json2jsonld serialization and fixing failing tests resulti…#617
proccaserra merged 2 commits intordf-testfrom
rdf-test-fix

Conversation

@proccaserra
Copy link
Member

…ng from alterations to isatools/model and isatools/database

…ng from alterations to isatools/model and isatools/database
@proccaserra proccaserra requested a review from knirirr March 9, 2026 13:10
@coveralls
Copy link

Coverage Status

coverage: 82.538% (+0.008%) from 82.53%
when pulling fa4b6a8 on rdf-test-fix
into 531adfb on rdf-test.

def test_to_dict(self, mock_uuid4):
study = Study(id_="#study/" + mock_uuid4.return_value)
assay = Assay(
# id_="#assay-/" + mock_uuid4.return_value,
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
# id_="#assay-/" + mock_uuid4.return_value,

technology_type=OntologyAnnotation(term="TT", id_="TT_ID"),
)

print("ID:", assay.id)
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
print("ID:", assay.id)
# print("ID:", assay.id)

# expected_dict["materials"]["samples"] = [{"@id": "my_sample"}]
indexes.samples = {"my_sample": Sample(id_="my_sample")}
assay = Assay()
# assay = Assay()
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
# assay = Assay()

{"@id": "my_data_file", "name": "filename", "type": "RawDataFile", "comments": []}
]
assay = Assay()
# assay = Assay()
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
# assay = Assay()

@proccaserra proccaserra assigned knirirr and unassigned knirirr Mar 9, 2026
@proccaserra proccaserra merged commit e7668a1 into rdf-test Mar 13, 2026
12 checks passed
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.

3 participants