Skip to content

Commit

Permalink
Add test for wrong mission
Browse files Browse the repository at this point in the history
  • Loading branch information
matteobachetti committed May 7, 2024
1 parent f02f5e6 commit 6702aff
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion stingray/mission_support/tests/test_mission_support.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,22 @@
import pytest
import os
from astropy.io import fits
from stingray.mission_support import rxte_pca_event_file_interpretation
from stingray.mission_support import (
rxte_pca_event_file_interpretation,
get_rough_conversion_function,
)

curdir = os.path.abspath(os.path.dirname(__file__))
datadir = os.path.join(curdir, "..", "..", "tests", "data")


class TestAll(object):

def test_wrong_mission_raises(self):
with pytest.raises(ValueError, match="Mission blah not recognized"):
get_rough_conversion_function("blah")


class TestXTE(object):
@classmethod
def setup_class(cls):
Expand Down

0 comments on commit 6702aff

Please sign in to comment.