Commit f335dc49dcd032a43e2e09df7516bc705586675a

Authored by Jürgen Knödlseder
1 parent 40b51184

Use installed test files for cstsmapsplit.py unit testing

Showing 1 changed file with 3 additions and 3 deletions
test/test_cstsmapsplit.py
@@ -69,7 +69,7 @@ class Test(test): @@ -69,7 +69,7 @@ class Test(test):
69 cstsmapsplit = self._script('cstsmapsplit') 69 cstsmapsplit = self._script('cstsmapsplit')
70 70
71 # Setup cstsmapsplit command 71 # Setup cstsmapsplit command
72 - cmd = cstsmapsplit+' inobs="selected_events.fits"'+ \ 72 + cmd = cstsmapsplit+' inobs="data/crab_events.fits"'+ \
73 ' inmodel="data/crab.xml"'+ \ 73 ' inmodel="data/crab.xml"'+ \
74 ' srcname="Crab"'+ \ 74 ' srcname="Crab"'+ \
75 ' caldb="prod2"'+ \ 75 ' caldb="prod2"'+ \
@@ -99,7 +99,7 @@ class Test(test): @@ -99,7 +99,7 @@ class Test(test):
99 self._check_cmdfile('cstsmapsplit_cmd1.dat') 99 self._check_cmdfile('cstsmapsplit_cmd1.dat')
100 100
101 # Setup cstsmapsplit command 101 # Setup cstsmapsplit command
102 - cmd = cstsmapsplit+' inobs="selected_events.fits"'+ \ 102 + cmd = cstsmapsplit+' inobs="data/crab_events.fits"'+ \
103 ' inmodel="data/crab.xml"'+ \ 103 ' inmodel="data/crab.xml"'+ \
104 ' srcname="Does_not_exist"'+ \ 104 ' srcname="Does_not_exist"'+ \
105 ' caldb="prod2"'+ \ 105 ' caldb="prod2"'+ \
@@ -131,7 +131,7 @@ class Test(test): @@ -131,7 +131,7 @@ class Test(test):
131 """ 131 """
132 # Set-up cstsmapsplit 132 # Set-up cstsmapsplit
133 tsmapsplit = cscripts.cstsmapsplit() 133 tsmapsplit = cscripts.cstsmapsplit()
134 - tsmapsplit['inobs'] = 'selected_events.fits' 134 + tsmapsplit['inobs'] = 'data/crab_events.fits'
135 tsmapsplit['inmodel'] = 'data/crab.xml' 135 tsmapsplit['inmodel'] = 'data/crab.xml'
136 tsmapsplit['srcname'] = 'Crab' 136 tsmapsplit['srcname'] = 'Crab'
137 tsmapsplit['caldb'] = 'prod2' 137 tsmapsplit['caldb'] = 'prod2'