From b8671543903ba3f85106d5fc6e1be04d32861c4e Mon Sep 17 00:00:00 2001 From: Serhii Lazebnyi Date: Thu, 12 Dec 2024 18:37:09 +0100 Subject: [PATCH] Remove http duplicates in resolver test --- .../test_http_components_resolver.py | 26 ------------------- 1 file changed, 26 deletions(-) diff --git a/unit_tests/sources/declarative/resolvers/test_http_components_resolver.py b/unit_tests/sources/declarative/resolvers/test_http_components_resolver.py index 1bbf2a41..e253b296 100644 --- a/unit_tests/sources/declarative/resolvers/test_http_components_resolver.py +++ b/unit_tests/sources/declarative/resolvers/test_http_components_resolver.py @@ -279,29 +279,3 @@ def test_dynamic_streams_read_with_http_components_resolver(): assert [stream.name for stream in actual_catalog.streams] == expected_stream_names assert len(records) == 2 assert [record.stream for record in records] == expected_stream_names - - -def test_duplicated_dynamic_streams_read_with_http_components_resolver(): - with HttpMocker() as http_mocker: - http_mocker.get( - HttpRequest(url="https://api.test.com/duplicates_items"), - HttpResponse( - body=json.dumps( - [ - {"id": 1, "name": "item_1"}, - {"id": 2, "name": "item_2"}, - {"id": 3, "name": "item_2"}, - ] - ) - ), - ) - - with pytest.raises(AirbyteTracedException) as exc_info: - source = ConcurrentDeclarativeSource( - source_config=_MANIFEST_WITH_DUPLICATES, config=_CONFIG, catalog=None, state=None - ) - source.discover(logger=source.logger, config=_CONFIG) - assert ( - str(exc_info.value) - == "Dynamic streams list contains a duplicate name: item_2. Please contact Airbyte Support." - )