Skip to content

Commit

Permalink
change test to account for region not being available
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulHancock committed Aug 30, 2017
1 parent 79289d4 commit 42d84ee
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests/test_source_finder.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,10 @@ def test_load_globals():
sfinder.load_globals(filename)
assert sfinder.global_data.img is not None
sfinder.load_globals(filename, bkgin=aux_files['bkg'], rms=1, mask=aux_files['mask'])
assert sfinder.global_data.mask is not None
sfinder.load_globals(filename, rms=aux_files['rms'], mask='derp', do_curve=False, )
assert sfinder.global_data.mask is None
# region isn't available due to healpy not being installed/required
assert sfinder.global_data.region is None
sfinder.load_globals(filename, rms=aux_files['rms'], mask='derp', do_curve=False)
assert sfinder.global_data.region is None
img = sfinder._load_aux_image(sfinder.global_data.img, filename)
assert img is not None

Expand Down

0 comments on commit 42d84ee

Please sign in to comment.