Skip to content

Commit

Permalink
Fix datatype sniff test to use sample and revert molecule registry ha…
Browse files Browse the repository at this point in the history
…cks.
  • Loading branch information
jmchilton committed Mar 21, 2016
1 parent 1e9b0e6 commit c8cb428
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
7 changes: 0 additions & 7 deletions lib/galaxy/datatypes/registry.py
Expand Up @@ -11,7 +11,6 @@
from . import tabular
from . import interval
from . import images
from . import molecules
from . import sequence
from . import qualityscore
from . import xml
Expand Down Expand Up @@ -739,7 +738,6 @@ def set_default_values( self ):
binary.MzSQlite(),
binary.IdpDB(),
binary.SQlite(),
molecules.CML(),
xml.GenericXml(),
sequence.Maf(),
sequence.Lav(),
Expand All @@ -760,11 +758,6 @@ def set_default_values( self ):
interval.Interval(),
tabular.Sam(),
tabular.Eland(),
molecules.SDF(),
molecules.FPS(),
molecules.InChI(),
molecules.MOL2(),
molecules.PDB(),
tabular.CSV()
]

Expand Down
3 changes: 2 additions & 1 deletion lib/galaxy/datatypes/sniff.py
Expand Up @@ -263,8 +263,9 @@ def guess_ext( fname, sniff_order, is_multi_byte=False ):
>>> fname = get_test_fname('megablast_xml_parser_test1.blastxml')
>>> from galaxy.datatypes import registry
>>> sample_conf = os.path.join(util.galaxy_directory(), "config", "datatypes_conf.xml.sample")
>>> datatypes_registry = registry.Registry()
>>> datatypes_registry.load_datatypes()
>>> datatypes_registry.load_datatypes(root_dir=util.galaxy_directory(), config=sample_conf)
>>> sniff_order = datatypes_registry.sniff_order
>>> guess_ext(fname, sniff_order)
'xml'
Expand Down

0 comments on commit c8cb428

Please sign in to comment.