From 463ca9ed69f4ce8cbffee50c4814211e96a582cc Mon Sep 17 00:00:00 2001 From: Benjamin Kiessling Date: Tue, 26 Mar 2024 15:08:25 +0100 Subject: [PATCH] zenodo search API doesn't work with versioned records :/ --- tests/test_repo.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/test_repo.py b/tests/test_repo.py index 06a97fc28..29274711f 100644 --- a/tests/test_repo.py +++ b/tests/test_repo.py @@ -32,14 +32,14 @@ def test_get_description(self): """ Tests fetching the description of a model. """ - record = repo.get_description('10.5281/zenodo.6657809') - self.assertEqual(record['doi'], '10.5281/zenodo.6657809') + record = repo.get_description('10.5281/zenodo.8425684') + self.assertEqual(record['doi'], '10.5281/zenodo.8425684') def test_get_model(self): """ Tests fetching a model. """ - id = repo.get_model('10.5281/zenodo.6657809', + id = repo.get_model('10.5281/zenodo.8425684', path=self.temp_model.name) - self.assertEqual(id, 'HTR-United-Manu_McFrench.mlmodel') - self.assertEqual((self.temp_path / id).stat().st_size, 16176844) + self.assertEqual(id, 'omnisyr_best.mlmodel') + self.assertEqual((self.temp_path / id).stat().st_size, 16245671)