File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
airbyte_cdk/test/standard_tests Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change 44from dataclasses import asdict
55from typing import TYPE_CHECKING
66
7+ import pytest
8+
79from airbyte_cdk .models import (
810 AirbyteMessage ,
911 AirbyteStream ,
@@ -59,6 +61,13 @@ def test_discover(
5961 scenario : ConnectorTestScenario ,
6062 ) -> None :
6163 """Standard test for `discover`."""
64+ if scenario .expected_outcome .expect_exception ():
65+ # If the scenario expects an exception, we can't ensure it specifically would fail
66+ # in discover, because some discover implementations do not need to make a connection.
67+ # We skip this test in that case.
68+ pytest .skip ("Skipping discover test for scenario that expects an exception." )
69+ return
70+
6271 run_test_job (
6372 self .create_connector (scenario ),
6473 "discover" ,
You can’t perform that action at this time.
0 commit comments