Skip to content

Commit 56eaf6c

Browse files
committed
tests: add standard testes stub
1 parent 0f096ca commit 56eaf6c

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# Copyright (c) 2025 Airbyte, Inc., all rights reserved.
2+
"""Airbyte standard connector tests.
3+
4+
The FAST Airbyte Standard Tests suite is designed to ensure that connectors meet Airbyte
5+
protocol standards.
6+
"""
7+
8+
from source_microsoft_sharepoint import SourceMicrosoftSharePoint
9+
10+
from airbyte_cdk.test import standard_tests
11+
12+
13+
pytest_plugins = ["airbyte_cdk.test.standard_tests.pytest_hooks"]
14+
15+
16+
class TestAirbyteStandardTests(standard_tests.SourceTestSuiteBase):
17+
"""Test suite for the Airbyte standard tests.
18+
19+
This class inherits from SourceTestSuiteBase and implements all of the tests in the suite.
20+
21+
As long as the class name starts with "Test", pytest will automatically discover and run the
22+
tests in this class.
23+
"""
24+
25+
connector = SourceMicrosoftSharePoint
26+
27+
@classmethod
28+
def create_connector(
29+
cls,
30+
scenario: standard_tests.ConnectorTestScenario,
31+
) -> SourceMicrosoftSharePoint:
32+
"""_summary_
33+
34+
Returns:
35+
SourceMicrosoftSharePoint: _description_
36+
"""
37+
return SourceMicrosoftSharePoint(
38+
config=scenario.config_dict,
39+
state=None,
40+
catalog=None,
41+
)

0 commit comments

Comments
 (0)