| Total Complexity | 3 |
| Total Lines | 15 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | # -*- coding: utf-8 -*- |
||
| 2 | import sys |
||
| 3 | from unittest.mock import patch |
||
| 4 | import pytest |
||
| 5 | from devenv.devenv import main, parse_args |
||
| 6 | |||
| 7 | |||
| 8 | def test_empty_dir(tmp_path): |
||
| 9 | with patch.object( |
||
| 10 | sys, "argv", ["devenv", "--scripts_path", tmp_path.name, "python", "devenv"] |
||
| 11 | ): |
||
| 12 | args = parse_args() |
||
| 13 | with pytest.raises(SystemError): |
||
| 14 | main(args) |
||
| 15 |