Commit ab00e903ca9ab89d7b153f5e2e78937c86fb1bcd
1 parent
5f89545a
Add unit test for show_irf.py example script
Showing
2 changed files
with
17 additions
and
0 deletions
examples/Makefile.am
test/test_examples.py.in
| ... | ... | @@ -114,6 +114,8 @@ class Test(gammalib.GPythonTestSuite): |
| 114 | 114 | 'Test pipeline_unbinned_mem.py') |
| 115 | 115 | self.append(self.test_show_butterfly, |
| 116 | 116 | 'Test show_butterfly.py') |
| 117 | + self.append(self.test_show_irf, | |
| 118 | + 'Test show_irf.py') | |
| 117 | 119 | self.append(self.test_show_model, |
| 118 | 120 | 'Test show_model.py') |
| 119 | 121 | self.append(self.test_show_pha, |
| ... | ... | @@ -278,6 +280,20 @@ class Test(gammalib.GPythonTestSuite): |
| 278 | 280 | # Return |
| 279 | 281 | return |
| 280 | 282 | |
| 283 | + # Test show_irf | |
| 284 | + def test_show_irf(self): | |
| 285 | + """ | |
| 286 | + Test show_irf | |
| 287 | + """ | |
| 288 | + # Set arguments | |
| 289 | + args = '-p example_show_irf.eps prod2 South_0.5h' | |
| 290 | + | |
| 291 | + # Execute script | |
| 292 | + self._execute_python('show_irf', args=args) | |
| 293 | + | |
| 294 | + # Return | |
| 295 | + return | |
| 296 | + | |
| 281 | 297 | # Test show_model |
| 282 | 298 | def test_show_model(self): |
| 283 | 299 | """ | ... | ... |