Skip to content

Commit

Permalink
zenodo search API doesn't work with versioned records :/
Browse files Browse the repository at this point in the history
  • Loading branch information
mittagessen committed Mar 26, 2024
1 parent 5af9c8c commit 463ca9e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/test_repo.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit 463ca9e

Please sign in to comment.