Skip to content

Commit fd49a15

Browse files
style: fix ruff format for skip decorators
Co-Authored-By: gl_anatolii.yatsuk <gl_anatolii.yatsuk@airbyte.io>
1 parent 6f3e97f commit fd49a15

3 files changed

Lines changed: 18 additions & 6 deletions

File tree

unit_tests/sources/streams/http/test_http.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -517,7 +517,9 @@ def test_parent_attribute_exist():
517517
assert child_stream.parent == parent_stream
518518

519519

520-
@pytest.mark.skip(reason="TEMPORARY: cache is hardcoded off in HttpClient to prevent unbounded memory growth")
520+
@pytest.mark.skip(
521+
reason="TEMPORARY: cache is hardcoded off in HttpClient to prevent unbounded memory growth"
522+
)
521523
def test_that_response_was_cached(mocker, requests_mock):
522524
requests_mock.register_uri("GET", "https://google.com/", text="text")
523525
stream = CacheHttpStream()
@@ -548,7 +550,9 @@ def parse_response(self, response: requests.Response, **kwargs) -> Iterable[Mapp
548550
yield {"value": len(response.text)}
549551

550552

551-
@pytest.mark.skip(reason="TEMPORARY: cache is hardcoded off in HttpClient to prevent unbounded memory growth")
553+
@pytest.mark.skip(
554+
reason="TEMPORARY: cache is hardcoded off in HttpClient to prevent unbounded memory growth"
555+
)
552556
@patch("airbyte_cdk.sources.streams.core.logging", MagicMock())
553557
def test_using_cache(mocker, requests_mock):
554558
requests_mock.register_uri("GET", "https://google.com/", text="text")

unit_tests/sources/streams/http/test_http_client.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,9 @@ def test_cache_filename():
4242
http_client.cache_filename == f"{http_client._name}.sqlite"
4343

4444

45-
@pytest.mark.skip(reason="TEMPORARY: cache is hardcoded off in HttpClient to prevent unbounded memory growth")
45+
@pytest.mark.skip(
46+
reason="TEMPORARY: cache is hardcoded off in HttpClient to prevent unbounded memory growth"
47+
)
4648
@pytest.mark.parametrize(
4749
"use_cache, expected_session",
4850
[
@@ -448,7 +450,9 @@ def test_session_request_exception_raises_backoff_exception():
448450
http_client._send(prepared_request, {})
449451

450452

451-
@pytest.mark.skip(reason="TEMPORARY: cache is hardcoded off in HttpClient to prevent unbounded memory growth")
453+
@pytest.mark.skip(
454+
reason="TEMPORARY: cache is hardcoded off in HttpClient to prevent unbounded memory growth"
455+
)
452456
def test_that_response_was_cached(requests_mock):
453457
cached_http_client = test_cache_http_client()
454458

@@ -722,7 +726,9 @@ def test_backoff_strategy_endless(
722726
assert mocked_send.call_count == expected_call_count
723727

724728

725-
@pytest.mark.skip(reason="TEMPORARY: cache is hardcoded off in HttpClient to prevent unbounded memory growth")
729+
@pytest.mark.skip(
730+
reason="TEMPORARY: cache is hardcoded off in HttpClient to prevent unbounded memory growth"
731+
)
726732
def test_given_different_headers_then_response_is_not_cached(requests_mock):
727733
http_client = HttpClient(name="test", logger=MagicMock(), use_cache=True)
728734
first_request_headers = {"header_key": "first"}

unit_tests/sources/streams/test_call_rate.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,9 @@ def test_without_cache(self, mocker, requests_mock):
332332

333333
assert MovingWindowCallRatePolicy.try_acquire.call_count == 10
334334

335-
@pytest.mark.skip(reason="TEMPORARY: cache is hardcoded off in HttpClient to prevent unbounded memory growth")
335+
@pytest.mark.skip(
336+
reason="TEMPORARY: cache is hardcoded off in HttpClient to prevent unbounded memory growth"
337+
)
336338
@pytest.mark.usefixtures("enable_cache")
337339
def test_with_cache(self, mocker, requests_mock):
338340
"""Test that HttpStream will use call budget when provided and not cached"""

0 commit comments

Comments
 (0)