Skip to content

Commit

Permalink
Removed tests not needed due to mocking. #557
Browse files Browse the repository at this point in the history
  • Loading branch information
knirirr committed Aug 27, 2024
1 parent fc63569 commit 7467ffb
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions tests/utils/test_isatools_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,22 +186,10 @@ def test_get_pubmed_article(self):
self.assertEqual(j['journal'], self.return_values['journal'])
self.assertEqual(j['title'], self.return_values['title'])

J1 = pubmed.get_pubmed_article('890406')
self.assertEqual(J1['doi'], '')

J2 = pubmed.get_pubmed_article('14909816')
self.assertEqual(J2['doi'], "")

J3 = pubmed.get_pubmed_article('2872386')
self.assertEqual(J3['doi'], "10.1016/s0025-7125(16)30931-2")

J4 = pubmed.get_pubmed_article('14870036')
self.assertEqual(J4['doi'], "")

def test_set_pubmed_article(self):
pubmed.get_pubmed_article = Mock(return_value=self.return_values)
p = Publication(pubmed_id='25520553')
prs = Person(first_name="bob")
pubmed.set_pubmed_article(p)
self.assertEqual(p.doi, self.return_values['doi'])
self.assertEqual(p.author_list, ", ".join(self.return_values['authors']))
Expand Down

0 comments on commit 7467ffb

Please sign in to comment.