-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add test resource for py_components unit test
- Loading branch information
1 parent
8309f79
commit 399dd7b
Showing
3 changed files
with
1,386 additions
and
0 deletions.
There are no files selected for viewing
15 changes: 15 additions & 0 deletions
15
unit_tests/source_declarative_manifest/resources/valid_py_components_code.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
"""Custom Python components.py file for testing. | ||
This file is mostly a no-op (for now) but should trigger a failure if code file is not | ||
correctly parsed. | ||
""" | ||
|
||
from airbyte_cdk.sources.declarative.models import DeclarativeStream | ||
|
||
|
||
class CustomDeclarativeStream(DeclarativeStream): | ||
"""Custom declarative stream class. | ||
We don't change anything from the base class, but this should still be enough to confirm | ||
that the components.py file is correctly parsed. | ||
""" |
3 changes: 3 additions & 0 deletions
3
unit_tests/source_declarative_manifest/resources/valid_py_components_config.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"pokemon_name": "blastoise" | ||
} |
Oops, something went wrong.