Skip to content

Conversation

@tcezard
Copy link
Member

@tcezard tcezard commented Jul 3, 2025

No description provided.

@tcezard tcezard requested review from apriltuesday and nitin-ebi July 3, 2025 08:00
Comment on lines 125 to 131
except HTTPError as e:
if e.response.status_code == 500:
self.add_error(json_path, f'{accession_type} {ena_accession} could not be resolve on ENA because the service is unavailable. try again later.')
else:
self.add_error(json_path, f'{accession_type} {ena_accession} does not exist in ENA or is private')
except Exception as e:
self.add_error(json_path, f'Unexpected error occurred when checking {accession_type} {ena_accession}')
Copy link
Member Author

Choose a reason for hiding this comment

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

This is to differentiate between private samples and failed API calls in the report

{'description': 'Existing sample SAME00004 does not have a valid geographic location', 'property': '/sample/3/bioSampleAccession'}])

@pytest.mark.skip(reason='Contact BioSample API')
def test_check_existing_real_biosamples(self):
Copy link
Member Author

Choose a reason for hiding this comment

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

Useful to test a specific Biosample.

@tcezard tcezard merged commit a6cc99e into EBIvariation:main Jul 7, 2025
1 check 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.

2 participants