Skip to content
Snippets Groups Projects
Commit 8fc43e9f authored by vertighel's avatar vertighel
Browse files

Updated tests

parent 1451fd70
No related branches found
No related tags found
No related merge requests found
Pipeline #28534 passed with warnings
...@@ -8,7 +8,7 @@ NAXIS2 = | [px] Length of data axis 2 (Y) ...@@ -8,7 +8,7 @@ NAXIS2 = | [px] Length of data axis 2 (Y)
EXTEND = True | FITS file may contain extensions EXTEND = True | FITS file may contain extensions
BSCALE = 1 | Scale factor applied to data BSCALE = 1 | Scale factor applied to data
BZERO = 32768 | Offset applied to data after scaling BZERO = 32768 | Offset applied to data after scaling
OBSERVER = | Observer name OBSERVER = UNKNOWN | Observer name
[Object] [Object]
OBJECT = | Name of observed object OBJECT = | Name of observed object
...@@ -39,7 +39,7 @@ OBS-ELEV = | [m] Observatory altitude above sea level ...@@ -39,7 +39,7 @@ OBS-ELEV = | [m] Observatory altitude above sea level
FOCUSPOS = | [um] Focuser position FOCUSPOS = | [um] Focuser position
FOCUSTEM = | [C] Focuser temperature FOCUSTEM = | [C] Focuser temperature
DEROTANG = 0 | [deg] Rotator angle, if any DEROTANG = 0 | [deg] Rotator angle, if any
PIERSIDE = "UNKNOWN" | Side of the camera wrt pier, if any PIERSIDE = UNKNOWN | Side of the camera wrt pier, if any
[Imaging] [Imaging]
INSTRUME = | Instrument name INSTRUME = | Instrument name
......
...@@ -6,8 +6,8 @@ from astropy.io.fits import Header ...@@ -6,8 +6,8 @@ from astropy.io.fits import Header
class TestNoche(unittest.TestCase): class TestNoche(unittest.TestCase):
def setUp(self): def setUp(self):
self.noche = Noche("noche/data/header_base.ini") self.noche = Noche("noche/headers/header_base.ini")
self.noche.load_observatory("noche/data/oarpaf.ini", flavor="OARPAF") self.noche.load_observatory("noche/observatories/oarpaf.ini")
def test_init_creates_header(self): def test_init_creates_header(self):
self.assertIsInstance(self.noche.header, Header) self.assertIsInstance(self.noche.header, Header)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment