File tree 3 files changed +4
-4
lines changed
tests/protocols/http/core
3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 11
11
class GvmHttpApiTestCase (unittest .TestCase ):
12
12
# pylint: disable=protected-access
13
13
14
- @patch ("gvm.http.core.connector.HttpApiConnector" )
14
+ @patch ("gvm.protocols. http.core.connector.HttpApiConnector" )
15
15
def test_basic_init (self , connector_mock : MagicMock ):
16
16
api = GvmHttpApi (connector_mock )
17
17
self .assertEqual (connector_mock , api ._connector )
18
18
19
- @patch ("gvm.http.core.connector.HttpApiConnector" )
19
+ @patch ("gvm.protocols. http.core.connector.HttpApiConnector" )
20
20
def test_init_with_key (self , connector_mock : MagicMock ):
21
21
api = GvmHttpApi (connector_mock , api_key = "my-api-key" )
22
22
self .assertEqual (connector_mock , api ._connector )
Original file line number Diff line number Diff line change 12
12
from httpx import HTTPError
13
13
14
14
from gvm .protocols .http .core .connector import HttpApiConnector
15
- from gvm .protocols .http .core import ContentType
15
+ from gvm .protocols .http .core . headers import ContentType
16
16
17
17
TEST_JSON_HEADERS = {
18
18
"content-type" : "application/json;charset=utf-8" ,
Original file line number Diff line number Diff line change 4
4
5
5
import unittest
6
6
7
- from gvm .protocols .http .core import ContentType
7
+ from gvm .protocols .http .core . headers import ContentType
8
8
9
9
10
10
class ContentTypeTestCase (unittest .TestCase ):
You can’t perform that action at this time.
0 commit comments