diff options
Diffstat (limited to 'tests/unit/test_utils.py')
-rw-r--r-- | tests/unit/test_utils.py | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/tests/unit/test_utils.py b/tests/unit/test_utils.py index 7f75f55..faf2592 100644 --- a/tests/unit/test_utils.py +++ b/tests/unit/test_utils.py @@ -2,31 +2,10 @@ import json import warnings import pytest -import requests -import responses from gitlab import types, utils -@responses.activate -def test_response_content(capsys): - responses.add( - method="GET", - url="https://example.com", - status=200, - body="test", - content_type="application/octet-stream", - ) - - resp = requests.get("https://example.com", stream=True) - utils.response_content( - resp, streamed=True, action=None, chunk_size=1024, iterator=False - ) - - captured = capsys.readouterr() - assert "test" in captured.out - - class TestEncodedId: def test_init_str(self): obj = utils.EncodedId("Hello") |