Skip to content

Commit b465043

Browse files
committed
update tests for refactored code
1 parent 55634a0 commit b465043

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/cli/test_code_scanner.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
import pytest
33
from click import ClickException
44
from git import InvalidGitRepositoryError
5+
from requests import Response
56

67
from cli.code_scanner import _handle_exception # noqa
78
from cli.exceptions import custom_exceptions
@@ -13,9 +14,9 @@ def ctx():
1314

1415

1516
@pytest.mark.parametrize('exception, expected_soft_fail', [
16-
(custom_exceptions.CycodeError(400, 'msg'), True),
17+
(custom_exceptions.NetworkError(400, 'msg', Response()), True),
1718
(custom_exceptions.ScanAsyncError('msg'), True),
18-
(custom_exceptions.HttpUnauthorizedError('msg'), True),
19+
(custom_exceptions.HttpUnauthorizedError('msg', Response()), True),
1920
(custom_exceptions.ZipTooLargeError(1000), True),
2021
(InvalidGitRepositoryError(), None),
2122
])

0 commit comments

Comments
 (0)