Skip to content

Commit

Permalink
Fix tests when astrodendro is not installed
Browse files Browse the repository at this point in the history
  • Loading branch information
astrofrog committed Aug 15, 2015
1 parent 77fd9b7 commit 6fbef61
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion glue/core/data_factories/tests/test_dendro_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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

0 comments on commit 6fbef61

Please sign in to comment.