notfound_action: 0 - do nothing 1 - display warning message 2 - raise error
(name, notfound_action=1)
| 25 | |
| 26 | |
| 27 | def get_class(name, notfound_action=1): |
| 28 | """ |
| 29 | notfound_action: |
| 30 | 0 - do nothing |
| 31 | 1 - display warning message |
| 32 | 2 - raise error |
| 33 | """ |
| 34 | cl = {'temp1': Temp1Info, |
| 35 | 'temp2': Temp2Info, |
| 36 | 'duplicate_options': DuplicateOptionInfo, |
| 37 | }.get(name.lower(), _system_info) |
| 38 | return cl() |
| 39 | |
| 40 | simple_site = """ |
| 41 | [ALL] |
no test coverage detected