[galaxy-commits] commit/galaxy-central: natefoo: Fix for the object store doctest.
Bitbucket
commits-noreply at bitbucket.org
Fri Jan 20 16:20:20 EST 2012
1 new commit in galaxy-central:
https://bitbucket.org/galaxy/galaxy-central/changeset/8a597b83448f/
changeset: 8a597b83448f
user: natefoo
date: 2012-01-20 22:20:13
summary: Fix for the object store doctest.
affected #: 1 file
diff -r ea34f05c3c212754ba79bdfb4959233cea2837b3 -r 8a597b83448f66523531c782b027dd000e277644 lib/galaxy/objectstore/__init__.py
--- a/lib/galaxy/objectstore/__init__.py
+++ b/lib/galaxy/objectstore/__init__.py
@@ -195,11 +195,12 @@
>>> from galaxy.util.bunch import Bunch
>>> import tempfile
>>> file_path=tempfile.mkdtemp()
- >>> s = DiskObjectStore(Bunch(umask=077), file_path=file_path)
- >>> s.create(1)
- >>> s.exists(1)
+ >>> obj = Bunch(id=1)
+ >>> s = DiskObjectStore(Bunch(umask=077, job_working_directory=file_path, new_file_path=file_path), file_path=file_path)
+ >>> s.create(obj)
+ >>> s.exists(obj)
True
- >>> assert s.get_filename(1) == file_path + '/000/dataset_1.dat'
+ >>> assert s.get_filename(obj) == file_path + '/000/dataset_1.dat'
"""
def __init__(self, config, file_path=None, extra_dirs=None):
super(DiskObjectStore, self).__init__()
Repository URL: https://bitbucket.org/galaxy/galaxy-central/
--
This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.
More information about the galaxy-commits
mailing list