diff --git a/glue/core/data_factories/tests/test_dendro_loader.py b/glue/core/data_factories/tests/test_dendro_loader.py index 3580319f1..90c45fa81 100644 --- a/glue/core/data_factories/tests/test_dendro_loader.py +++ b/glue/core/data_factories/tests/test_dendro_loader.py @@ -4,7 +4,6 @@ import pytest -from ..dendro_loader import is_dendro, load_dendro from ..helpers import find_factory from ....tests.helpers import requires_astrodendro @@ -16,10 +15,12 @@ @requires_astrodendro @pytest.mark.parametrize('filename', ['dendro.fits', 'dendro_old.fits', 'dendro.hdf5']) def test_is_dendro(filename): + from ..dendro_loader import is_dendro assert is_dendro(os.path.join(DATA, filename)) @requires_astrodendro @pytest.mark.parametrize('filename', ['dendro.fits', 'dendro_old.fits', 'dendro.hdf5']) def test_find_factory(filename): + from ..dendro_loader import load_dendro assert find_factory(os.path.join(DATA, filename)) is load_dendro \ No newline at end of file