File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
tests/protocols/http/core Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1111class GvmHttpApiTestCase (unittest .TestCase ):
1212 # pylint: disable=protected-access
1313
14- @patch ("gvm.http.core.connector.HttpApiConnector" )
14+ @patch ("gvm.protocols. http.core.connector.HttpApiConnector" )
1515 def test_basic_init (self , connector_mock : MagicMock ):
1616 api = GvmHttpApi (connector_mock )
1717 self .assertEqual (connector_mock , api ._connector )
1818
19- @patch ("gvm.http.core.connector.HttpApiConnector" )
19+ @patch ("gvm.protocols. http.core.connector.HttpApiConnector" )
2020 def test_init_with_key (self , connector_mock : MagicMock ):
2121 api = GvmHttpApi (connector_mock , api_key = "my-api-key" )
2222 self .assertEqual (connector_mock , api ._connector )
Original file line number Diff line number Diff line change 1212from httpx import HTTPError
1313
1414from gvm .protocols .http .core .connector import HttpApiConnector
15- from gvm .protocols .http .core import ContentType
15+ from gvm .protocols .http .core . headers import ContentType
1616
1717TEST_JSON_HEADERS = {
1818 "content-type" : "application/json;charset=utf-8" ,
Original file line number Diff line number Diff line change 44
55import unittest
66
7- from gvm .protocols .http .core import ContentType
7+ from gvm .protocols .http .core . headers import ContentType
88
99
1010class ContentTypeTestCase (unittest .TestCase ):
You can’t perform that action at this time.
0 commit comments