Commit debf6fb1ac792c9f594a18f8b5178eac0c086696
1 parent
6855ef94
Improve branch coverage of csiactobs.py and csiactdata.py
Showing
2 changed files
with
19 additions
and
0 deletions
cscripts/csiactobs.py
test/test_csiactdata.py
| ... | ... | @@ -116,5 +116,21 @@ class Test(test): |
| 116 | 116 | self.test_assert(len(names) > 0, |
| 117 | 117 | 'Check successful execution from Python') |
| 118 | 118 | |
| 119 | + # Set-up csiactdata | |
| 120 | + iactdata = cscripts.csiactdata() | |
| 121 | + iactdata['datapath'] = self._datapath | |
| 122 | + iactdata['logfile'] = 'csiactdata_py2.log' | |
| 123 | + iactdata['chatter'] = 4 | |
| 124 | + | |
| 125 | + # Run csiactdata script and save run list | |
| 126 | + iactdata.execute() | |
| 127 | + | |
| 128 | + # Get available configs | |
| 129 | + names = iactdata.names() | |
| 130 | + | |
| 131 | + # Check if there is at least one config available | |
| 132 | + self.test_assert(len(names) > 0, | |
| 133 | + 'Check successful execution from Python') | |
| 134 | + | |
| 119 | 135 | # Return |
| 120 | 136 | return | ... | ... |