Skip to content

Commit

Permalink
build: handling flaky PMC test
Browse files Browse the repository at this point in the history
  • Loading branch information
jonrkarr committed Feb 27, 2022
1 parent 511f252 commit 9a64a1a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/ref/test_ref_utils.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from biosimulators_utils.ref import utils
from unittest import mock
import Bio.Entrez
import flaky
import ftplib
import os
import random
Expand Down Expand Up @@ -45,6 +46,7 @@ def test_get_entrez_record(self):
with self.assertRaisesRegex(TypeError, 'must be a string'):
utils.get_entrez_record('pmc', None)

@flaky.flaky(max_runs=5, min_passes=1)
def test_get_pubmed_central_id(self):
self.assertEqual(utils.get_pubmed_central_id('23184105'), 'PMC5813803')
time.sleep(1)
Expand Down
1 change: 1 addition & 0 deletions tests/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
capturer
flaky
jsonschema

0 comments on commit 9a64a1a

Please sign in to comment.