Skip to content

Commit 4d6c460

Browse files
committed
tries fixing regression of Issue170
1 parent 7241ec9 commit 4d6c460

2 files changed

Lines changed: 2 additions & 5 deletions

File tree

migration/ormigrate/toolbox.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,6 @@ def inPublicCI():
2525
'''
2626
return getpass.getuser() in [ "travis", "runner" ];
2727

28-
@classmethod
29-
def getResourcePath(cls):
30-
path = os.path.dirname(__file__) + "/resources"
31-
return
3228

3329
@classmethod
3430
def absoluteFilePaths(cls,directory):

migration/tests/testIssue170_Curation.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
from ormigrate.issue170_curation import CurationQualityChecker
99
from tests.corpus import Corpus
1010
from collections import Counter
11+
from openresearch.openresearch import OpenResearch
1112

1213
class TestIssue170(unittest.TestCase):
1314
'''
@@ -30,7 +31,7 @@ def testCurationQualityCheck170(self):
3031
3132
Curation quality check
3233
'''
33-
path=hf.getResourcePath() if hf.inPublicCI() else None
34+
path=OpenResearch.getResourcePath() if hf.inPublicCI() else None
3435
userRating=CurationQualityChecker.loadUserRating(path)
3536
self.assertTrue("Wolfgang Fahl" in userRating)
3637
if self.debug:

0 commit comments

Comments
 (0)