| Conditions | 5 |
| Total Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 5 | ||
| Bugs | 0 | Features | 0 |
| 1 | |||
| 8 | def test_workbook_not_exist(empty_app): |
||
| 9 | plugin = EmptyPlugin(empty_app) |
||
| 10 | workbook_path = 'not_exist.xlsx' |
||
| 11 | config_path = get_test_data_path('config.json') |
||
| 12 | if sys.version.startswith('2.7'): |
||
| 13 | with pytest.raises(IOError): |
||
| 14 | plugin.excel_validation.read_excel(config_path, workbook_path) |
||
| 15 | elif sys.version.startswith('3'): |
||
| 16 | with pytest.raises(FileNotFoundError): |
||
| 17 | plugin.excel_validation.read_excel(config_path, workbook_path) |
||
| 18 | else: |
||
| 19 | pytest.fail("Test does only support Python versions 2.7 and 3.x") |
||
| 20 |