| Conditions | 4 |
| Total Lines | 9 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | # -*- coding: utf-8 -*- |
||
| 11 | def test_empty_dir(): |
||
| 12 | # usually we'd use pytest's tmp_path, but it wasn't cleaning up in this instance |
||
| 13 | with TemporaryDirectory() as tmpdir: |
||
| 14 | with patch.object( |
||
| 15 | sys, "argv", ["devenv", "--scripts_path", tmpdir, "python", "devenv"] |
||
| 16 | ): |
||
| 17 | args = parse_args() |
||
| 18 | with pytest.raises(SystemError): |
||
| 19 | main(args) |
||
| 20 | |||
| 52 |