Skip to content

Commit

Permalink
Fix failing tests for 238d908.
Browse files Browse the repository at this point in the history
  • Loading branch information
jmchilton committed Aug 20, 2015
1 parent 238d908 commit a9827fa
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion test/unit/test_galaxy_mapping.py
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ def new_hda( self, history, **kwds ):
@classmethod
def setUpClass(cls):
# Start the database and connect the mapping
cls.model = mapping.init( "/tmp", "sqlite:///:memory:", create_tables=True )
cls.model = mapping.init( "/tmp", "sqlite:///:memory:", create_tables=True, object_store=MockObjectStore() )
assert cls.model.engine is not None

@classmethod
Expand Down Expand Up @@ -442,6 +442,21 @@ def expunge(cls):
cls.model.session.expunge_all()


class MockObjectStore(object):

def __init__(self):
pass

def size(self, dataset):
return 42

def exists(self, *args, **kwds):
return True

def get_filename(self, *args, **kwds):
return "dataest_14.dat"


def get_suite():
suite = unittest.TestSuite()
suite.addTest( MappingTests( "test_basic" ) )
Expand Down

0 comments on commit a9827fa

Please sign in to comment.