Skip to content

Commit b867154

Browse files
committed
Remove http duplicates in resolver test
1 parent ba7b95e commit b867154

File tree

1 file changed

+0
-26
lines changed

1 file changed

+0
-26
lines changed

unit_tests/sources/declarative/resolvers/test_http_components_resolver.py

-26
Original file line numberDiff line numberDiff line change
@@ -279,29 +279,3 @@ def test_dynamic_streams_read_with_http_components_resolver():
279279
assert [stream.name for stream in actual_catalog.streams] == expected_stream_names
280280
assert len(records) == 2
281281
assert [record.stream for record in records] == expected_stream_names
282-
283-
284-
def test_duplicated_dynamic_streams_read_with_http_components_resolver():
285-
with HttpMocker() as http_mocker:
286-
http_mocker.get(
287-
HttpRequest(url="https://api.test.com/duplicates_items"),
288-
HttpResponse(
289-
body=json.dumps(
290-
[
291-
{"id": 1, "name": "item_1"},
292-
{"id": 2, "name": "item_2"},
293-
{"id": 3, "name": "item_2"},
294-
]
295-
)
296-
),
297-
)
298-
299-
with pytest.raises(AirbyteTracedException) as exc_info:
300-
source = ConcurrentDeclarativeSource(
301-
source_config=_MANIFEST_WITH_DUPLICATES, config=_CONFIG, catalog=None, state=None
302-
)
303-
source.discover(logger=source.logger, config=_CONFIG)
304-
assert (
305-
str(exc_info.value)
306-
== "Dynamic streams list contains a duplicate name: item_2. Please contact Airbyte Support."
307-
)

0 commit comments

Comments
 (0)