Skip to content

Commit baf8fe6

Browse files
committed
Merge pull request #1 from jmchilton/release_fix
Fix failing tests for 238d908.
2 parents 238d908 + a9827fa commit baf8fe6

1 file changed

Lines changed: 16 additions & 1 deletion

File tree

test/unit/test_galaxy_mapping.py

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@ def new_hda( self, history, **kwds ):
413413
@classmethod
414414
def setUpClass(cls):
415415
# Start the database and connect the mapping
416-
cls.model = mapping.init( "/tmp", "sqlite:///:memory:", create_tables=True )
416+
cls.model = mapping.init( "/tmp", "sqlite:///:memory:", create_tables=True, object_store=MockObjectStore() )
417417
assert cls.model.engine is not None
418418

419419
@classmethod
@@ -442,6 +442,21 @@ def expunge(cls):
442442
cls.model.session.expunge_all()
443443

444444

445+
class MockObjectStore(object):
446+
447+
def __init__(self):
448+
pass
449+
450+
def size(self, dataset):
451+
return 42
452+
453+
def exists(self, *args, **kwds):
454+
return True
455+
456+
def get_filename(self, *args, **kwds):
457+
return "dataest_14.dat"
458+
459+
445460
def get_suite():
446461
suite = unittest.TestSuite()
447462
suite.addTest( MappingTests( "test_basic" ) )

0 commit comments

Comments
 (0)