Skip to content

Commit

Permalink
Add test for line that wasn't tested
Browse files Browse the repository at this point in the history
  • Loading branch information
mwcraig committed Feb 19, 2024
1 parent 8b12ff2 commit fece598
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions stellarphot/photometry/tests/test_photometry.py
Original file line number Diff line number Diff line change
Expand Up @@ -575,6 +575,11 @@ def test_photometry_on_directory_with_bad_fits(self):
object_of_interest=object_name,
)

def test_invalid_path(self):
ap = AperturePhotometry(settings=DEFAULT_PHOTOMETRY_SETTINGS)
with pytest.raises(ValueError, match="is not a valid file or directory"):
ap("invalid_path")


def test_calc_noise_defaults():
# If we put in nothing we should get an error about is missing camera
Expand Down

0 comments on commit fece598

Please sign in to comment.