Skip to content

Commit 2d308e8

Browse files
authored
Update airbyte_cdk/test/standard_tests/source_base.py
1 parent a257eb2 commit 2d308e8

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

airbyte_cdk/test/standard_tests/source_base.py

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,18 @@ def test_discover(
6464
test_scenario=scenario,
6565
)
6666

67-
def test_spec(
68-
self,
69-
# scenario: ConnectorTestScenario, # No inputs needed for spec test
70-
) -> None:
71-
"""Standard test for `spec`."""
67+
def test_spec(self) -> None:
68+
"""Standard test for `spec`.
69+
70+
This test does not require a `scenario` input, since `spec`
71+
does not require any inputs.
72+
73+
We assume `spec` should always succeed and it should always generate
74+
a valid `SPEC` message.
75+
76+
Note: the parsing of messages by type also implicitly validates that
77+
the generated `SPEC` message is valid JSON.
78+
"""
7279
result = run_test_job(
7380
verb="spec",
7481
test_scenario=None,

0 commit comments

Comments
 (0)